projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8155d64
)
Assert on invalid PHINode::addIncoming() arguments. Patch by Erick Tryzelaar!
author
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 27 Feb 2008 22:37:28 +0000
(22:37 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 27 Feb 2008 22:37:28 +0000
(22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47697
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instructions.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instructions.h
b/include/llvm/Instructions.h
index 59c2762d199b32109f81c7f2005a3470ede23d6e..3474429f7628079e045d6935fa1762dc877d7270 100644
(file)
--- a/
include/llvm/Instructions.h
+++ b/
include/llvm/Instructions.h
@@
-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;