diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-06 14:33:37 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-06 14:33:37 +0000 |
commit | 8fabb621b15a5338304bc87b056d1e2048087c3e (patch) | |
tree | 25de02a4ff2a6da96b650990abdeeb61eb912f8e | |
parent | 72bd3341f8915d5a55995125ead12b39017be425 (diff) |
Split assertion to two in order to give better assertion messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15543 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Instructions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 4d33bb0eb0..205f32b460 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -416,9 +416,9 @@ StoreInst::StoreInst(Value *Val, Value *Ptr, bool isVolatile, } void StoreInst::init(Value *Val, Value *Ptr) { - assert(isa<PointerType>(Ptr->getType()) && - Val->getType() == cast<PointerType>(Ptr->getType())->getElementType() - && "Ptr must have pointer type."); + assert(isa<PointerType>(Ptr->getType()) && "Ptr must have pointer type!"); + assert(Val->getType() == cast<PointerType>(Ptr->getType())->getElementType() + && "Ptr must be a pointer to Val type!"); Operands.reserve(2); Operands.push_back(Use(Val, this)); |