Examine the type code in the setcc class of instructions and if it
authorReid Spencer <rspencer@reidspencer.com>
Sat, 21 Aug 2004 16:11:02 +0000 (16:11 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 21 Aug 2004 16:11:02 +0000 (16:11 +0000)
is a PackedType, throw an error. Temporary solution.

Patch contributed by Brad Jones.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/llvmAsmParser.y

index a2ebd19cb2d004893613babcbe02ab9a6c18b50a..8ba89bc879ccfb4b6eb49c97b65d20f110a17a58 100644 (file)
@@ -1934,6 +1934,10 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
     delete $2;
   }
   | SetCondOps Types ValueRef ',' ValueRef {
+    if(isa<PackedType>((*$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!");