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:
478921b
)
Make sure that PHI node operands are first class types
author
Chris Lattner
<sabre@nondot.org>
Thu, 30 Oct 2003 01:38:18 +0000
(
01:38
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 30 Oct 2003 01:38:18 +0000
(
01:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9607
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/llvmAsmParser.y
patch
|
blob
|
history
diff --git
a/lib/AsmParser/llvmAsmParser.y
b/lib/AsmParser/llvmAsmParser.y
index 28b4ad6e71e160590c62a0d4d2812f3c5a08ac45..96d2daeec4b3322837a71db717546c6a3179eb64 100644
(file)
--- a/
lib/AsmParser/llvmAsmParser.y
+++ b/
lib/AsmParser/llvmAsmParser.y
@@
-1756,6
+1756,8
@@
InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
}
| PHI_TOK PHIList {
const Type *Ty = $2->front().first->getType();
+ if (!Ty->isFirstClassType())
+ ThrowException("PHI node operands must be of first class type!");
$$ = new PHINode(Ty);
$$->op_reserve($2->size()*2);
while ($2->begin() != $2->end()) {