Revert this part of r45073 until the verifier is
authorDuncan Sands <baldrick@free.fr>
Sun, 16 Dec 2007 21:01:21 +0000 (21:01 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 16 Dec 2007 21:01:21 +0000 (21:01 +0000)
changed not to reject invoke of inline asm.

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

lib/Transforms/Utils/InlineFunction.cpp

index 3d31f71300ac7855ff59c48afd10c3b6b27156c7..e9f6b28e98b5259853d784452e9e069aba702c43 100644 (file)
@@ -69,8 +69,9 @@ static void HandleInlinedInvoke(InvokeInst *II, BasicBlock *FirstNewBlock,
           if (!isa<CallInst>(I)) continue;
           CallInst *CI = cast<CallInst>(I);
 
-          // If this call cannot unwind, don't convert it to an invoke.
-          if (CI->isNoUnwind())
+          // If this call cannot unwind or is an inline asm, don't
+          // convert it to an invoke.
+          if (CI->isNoUnwind() || isa<InlineAsm>(CI->getCalledValue()))
             continue;
 
           // Convert this function call into an invoke instruction.