1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Assert on invalid PHINode::addIncoming() arguments. Patch by Erick Tryzelaar!

llvm-svn: 47697
This commit is contained in:
Anton Korobeynikov 2008-02-27 22:37:28 +00:00
parent 8039d40b76
commit ecfe55a801

View File

@ -1312,6 +1312,8 @@ public:
/// addIncoming - Add an incoming value to the end of the PHI list
///
void addIncoming(Value *V, BasicBlock *BB) {
assert(V && "PHI node got a null value!");
assert(BB && "PHI node got a null basic block!");
assert(getType() == V->getType() &&
"All operands to PHI node must be the same type as the PHI node!");
unsigned OpNo = NumOperands;