[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 29 19:39:01 PST 2003
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.136 -> 1.137
---
Log message:
Make sure that PHI node operands are first class types
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.136 llvm/lib/AsmParser/llvmAsmParser.y:1.137
--- llvm/lib/AsmParser/llvmAsmParser.y:1.136 Tue Oct 21 10:17:12 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Oct 29 19:38:18 2003
@@ -1756,6 +1756,8 @@
}
| 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()) {
More information about the llvm-commits
mailing list