aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp6
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));