Make invokes of inline asm legal. Teach codegen
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index 08f031f40ed60b8dc8137952d7821a006302744f..c083fe78107ad2d5d8c045b4b9c8cd94ac739f32 100644 (file)
@@ -1123,7 +1123,7 @@ void Verifier::visitInstruction(Instruction &I) {
                 "Instruction does not dominate all uses!", Op, &I);
       }
     } else if (isa<InlineAsm>(I.getOperand(i))) {
-      Assert1(i == 0 && isa<CallInst>(I),
+      Assert1(i == 0 && (isa<CallInst>(I) || isa<InvokeInst>(I)),
               "Cannot take the address of an inline asm!", &I);
     }
   }