mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 14:41:05 +00:00
Add an assertion that would hopefully catch a problem that was tripping
cameron up llvm-svn: 1944
This commit is contained in:
parent
2ed4beefea
commit
0b9734b293
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user