[llvm-branch-commits] [llvm-branch] r81439 - in /llvm/branches/Apple/Bender-SWB: lib/Transforms/Utils/InlineFunction.cpp test/FrontendC++/2007-05-23-TryFinally.cpp
Bill Wendling
isanbard at gmail.com
Thu Sep 10 02:05:53 PDT 2009
Author: void
Date: Thu Sep 10 04:05:52 2009
New Revision: 81439
URL: http://llvm.org/viewvc/llvm-project?rev=81439&view=rev
Log:
Apply Eric's patch for <rdar://problem/7151726>.
Modified:
llvm/branches/Apple/Bender-SWB/lib/Transforms/Utils/InlineFunction.cpp
llvm/branches/Apple/Bender-SWB/test/FrontendC++/2007-05-23-TryFinally.cpp
Modified: llvm/branches/Apple/Bender-SWB/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender-SWB/lib/Transforms/Utils/InlineFunction.cpp?rev=81439&r1=81438&r2=81439&view=diff
==============================================================================
--- llvm/branches/Apple/Bender-SWB/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/branches/Apple/Bender-SWB/lib/Transforms/Utils/InlineFunction.cpp Thu Sep 10 04:05:52 2009
@@ -270,6 +270,11 @@
return false;
}
+ // FIXME: When we rework invoke/unwind/selector handling for unwinding
+ // ordering we can turn this back on.
+ if (isa<InvokeInst>(TheCall) && !MarkNoUnwind)
+ return false;
+
// Get an iterator to the last basic block in the function, which will have
// the new function inlined after it.
//
Modified: llvm/branches/Apple/Bender-SWB/test/FrontendC++/2007-05-23-TryFinally.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender-SWB/test/FrontendC%2B%2B/2007-05-23-TryFinally.cpp?rev=81439&r1=81438&r2=81439&view=diff
==============================================================================
--- llvm/branches/Apple/Bender-SWB/test/FrontendC++/2007-05-23-TryFinally.cpp (original)
+++ llvm/branches/Apple/Bender-SWB/test/FrontendC++/2007-05-23-TryFinally.cpp Thu Sep 10 04:05:52 2009
@@ -1,4 +1,4 @@
-// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
+// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep " unwind\$" | \
// RUN: wc -l | grep {\[23\]}
struct One { };
More information about the llvm-branch-commits
mailing list