From: Bill Wendling Date: Thu, 1 Sep 2011 01:28:25 +0000 (+0000) Subject: Update to new EH scheme. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=00c30d58a5f53132dc93a0e22e05a49cba3371d8;p=oota-llvm.git Update to new EH scheme. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138933 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll b/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll index cfe5df6d30a..56493e2e5e3 100644 --- a/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll +++ b/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll @@ -10,6 +10,9 @@ invoke_cont: ; preds = %0 ret float* %tmp.11 X: ; preds = %0 + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup ret float* null } +declare i32 @__gxx_personality_v0(...) diff --git a/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll b/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll index bec0b9e0c57..6df30c7e7fd 100644 --- a/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll +++ b/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll @@ -23,6 +23,9 @@ cont: ; preds = %call, %entry ret i32 %V N: ; preds = %call + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup ret i32 0 } +declare i32 @__gxx_personality_v0(...) diff --git a/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll b/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll index d56a1a0b786..f6eb24843fb 100644 --- a/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll +++ b/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll @@ -29,5 +29,9 @@ invcont37: ; preds = %invcont31 ret void lpad: ; preds = %invcont31, %invcont, %entry + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup unreachable } + +declare i32 @__gxx_personality_v0(...) diff --git a/test/Transforms/InstCombine/call.ll b/test/Transforms/InstCombine/call.ll index d0848739cdc..983dd262839 100644 --- a/test/Transforms/InstCombine/call.ll +++ b/test/Transforms/InstCombine/call.ll @@ -107,9 +107,13 @@ invoke.cont: ; preds = %entry unreachable try.handler: ; preds = %entry + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup ret i8* null } +declare i32 @__gxx_personality_v0(...) + ; Don't turn this into "unreachable": the callee and caller don't agree in ; calling conv, but the implementation of test8a may actually end up using the ; right calling conv.