Revert this part of r45073 until the verifier is
changed not to reject invoke of inline asm.
llvm-svn: 45077
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 3d31f71..e9f6b28 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -69,8 +69,9 @@
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.