mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Add an assertion that would hopefully catch a problem that was tripping
cameron up git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -59,6 +59,8 @@ PHINode::PHINode(const PHINode &PN)
|
||||
}
|
||||
|
||||
void PHINode::addIncoming(Value *D, BasicBlock *BB) {
|
||||
assert(getType() == D->getType() &&
|
||||
"All operands to PHI node must be the same type as the PHI node!");
|
||||
Operands.push_back(Use(D, this));
|
||||
Operands.push_back(Use(BB, this));
|
||||
}
|
||||
|
Reference in New Issue
Block a user