From fdbcdb732fecc313eb0f35ac81f5dd7103c55879 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 21 Aug 2004 16:11:02 +0000 Subject: [PATCH] Examine the type code in the setcc class of instructions and if it is a PackedType, throw an error. Temporary solution. Patch contributed by Brad Jones. llvm-svn: 15963 --- lib/AsmParser/llvmAsmParser.y | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index a2ebd19cb2d..8ba89bc879c 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1934,6 +1934,10 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef { delete $2; } | SetCondOps Types ValueRef ',' ValueRef { + if(isa((*$2).get())) { + ThrowException( + "PackedTypes currently not supported in setcc instructions!"); + } $$ = new SetCondInst($1, getVal(*$2, $3), getVal(*$2, $5)); if ($$ == 0) ThrowException("binary operator returned null!");