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:
5f4a528
)
Add an assertion that would hopefully catch a problem that was tripping
author
Chris Lattner
<sabre@nondot.org>
Fri, 22 Mar 2002 18:01:58 +0000
(18:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 22 Mar 2002 18:01:58 +0000
(18:01 +0000)
cameron up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1944
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/InstrTypes.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/InstrTypes.cpp
b/lib/VMCore/InstrTypes.cpp
index a4c82126323047803bd0f2c3e66cdc678cfdf950..3ed9e688eef4b9fe72ac88829f17669441628ae2 100644
(file)
--- a/
lib/VMCore/InstrTypes.cpp
+++ b/
lib/VMCore/InstrTypes.cpp
@@
-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));
}