aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-16 21:01:21 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-16 21:01:21 +0000
commit266ef9ba7286cdf67e977b9dfc72f0fddf8cb33f (patch)
treef4d08abd32ef989756e8c5a852e60dc95bc16516 /lib/Transforms/Utils
parentaeb9d89daee7b0ad80a6c26ee1797e0c8f83e135 (diff)
downloadexternal_llvm-266ef9ba7286cdf67e977b9dfc72f0fddf8cb33f.zip
external_llvm-266ef9ba7286cdf67e977b9dfc72f0fddf8cb33f.tar.gz
external_llvm-266ef9ba7286cdf67e977b9dfc72f0fddf8cb33f.tar.bz2
Revert this part of r45073 until the verifier is
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
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 3d31f71..e9f6b28 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<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.