From 830037ab2dd989bab1d882fdda694796697a7cb6 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 16 Dec 2007 21:01:21 +0000 Subject: [PATCH] Revert this part of r45073 until the verifier is changed not to reject invoke of inline asm. llvm-svn: 45077 --- lib/Transforms/Utils/InlineFunction.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index 3d31f71300a..e9f6b28e98b 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -69,8 +69,9 @@ static void HandleInlinedInvoke(InvokeInst *II, BasicBlock *FirstNewBlock, if (!isa(I)) continue; CallInst *CI = cast(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(CI->getCalledValue())) continue; // Convert this function call into an invoke instruction.