projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72bd334
)
Split assertion to two in order to give better assertion messages.
author
Alkis Evlogimenos
<alkis@evlogimenos.com>
Fri, 6 Aug 2004 14:33:37 +0000
(14:33 +0000)
committer
Alkis Evlogimenos
<alkis@evlogimenos.com>
Fri, 6 Aug 2004 14:33:37 +0000
(14:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15543
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index 4d33bb0eb010d9b081c5a7775ae061389d5272a1..205f32b4605a128aaed06a062a50e216f2b739ff 100644
(file)
--- 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));