diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-30 01:38:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-30 01:38:18 +0000 |
commit | 8ea8f36a7fc2c4e069ccd3b95581535c5bd3f09d (patch) | |
tree | fac3c1e77d78963f007c9c392c0416cd2181aa76 /lib/AsmParser/llvmAsmParser.y | |
parent | 478921b11a9e9f6ffac0c4eb96c4275e2b2ce3cd (diff) | |
download | external_llvm-8ea8f36a7fc2c4e069ccd3b95581535c5bd3f09d.zip external_llvm-8ea8f36a7fc2c4e069ccd3b95581535c5bd3f09d.tar.gz external_llvm-8ea8f36a7fc2c4e069ccd3b95581535c5bd3f09d.tar.bz2 |
Make sure that PHI node operands are first class types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 28b4ad6..96d2dae 100644 --- 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()) { |