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 | 079fbde482ed71ecfd1d270406e69cadaf062150 (patch) | |
| tree | 1e45d4564bde7f13bc2413c4bdf45b71d6016c70 /llvm | |
| parent | 5064097632cae9d8bb02b30d2e1b8ae5e7a1e7bb (diff) | |
| download | bcm5719-llvm-079fbde482ed71ecfd1d270406e69cadaf062150.tar.gz bcm5719-llvm-079fbde482ed71ecfd1d270406e69cadaf062150.zip | |
Split assertion to two in order to give better assertion messages.
llvm-svn: 15543
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 4d33bb0eb01..205f32b4605 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/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)); |

