mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
72bd3341f8
commit
8fabb621b1
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user