summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/cppeh-catch-all.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-03-03 17:41:09 +0000
committerReid Kleckner <reid@kleckner.net>2015-03-03 17:41:09 +0000
commit2f05d4c91f2020dd4cfff4f66ff77366bd56f246 (patch)
tree647149cca04d44442297dee366058c6c4e4e456a /llvm/test/CodeGen/X86/cppeh-catch-all.ll
parent8e38f30e49f323a78c27083004c8651525e1bbfd (diff)
downloadbcm5719-llvm-2f05d4c91f2020dd4cfff4f66ff77366bd56f246.tar.gz
bcm5719-llvm-2f05d4c91f2020dd4cfff4f66ff77366bd56f246.zip
Make llvm.eh.begincatch use an outparam
Ultimately, __CxxFrameHandler3 needs us to put a stack offset in a table, and it will take responsibility for copying the exception object into that slot. Modelling the exception object as an SSA value returned by begincatch isn't going to work in general, so make it use an output parameter. Reviewers: andrew.w.kaylor Differential Revision: http://reviews.llvm.org/D7920 llvm-svn: 231086
Diffstat (limited to 'llvm/test/CodeGen/X86/cppeh-catch-all.ll')
-rw-r--r--llvm/test/CodeGen/X86/cppeh-catch-all.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/cppeh-catch-all.ll b/llvm/test/CodeGen/X86/cppeh-catch-all.ll
index ff0cea662c3..814e97d2edf 100644
--- a/llvm/test/CodeGen/X86/cppeh-catch-all.ll
+++ b/llvm/test/CodeGen/X86/cppeh-catch-all.ll
@@ -40,7 +40,7 @@ lpad: ; preds = %entry
catch: ; preds = %lpad
%exn = load i8*, i8** %exn.slot
- %tmp3 = call i8* @llvm.eh.begincatch(i8* %exn) #2
+ call void @llvm.eh.begincatch(i8* %exn, i8* null) #2
call void @_Z16handle_exceptionv()
br label %invoke.cont2
@@ -66,7 +66,7 @@ declare void @_Z9may_throwv() #1
declare i32 @__CxxFrameHandler3(...)
-declare i8* @llvm.eh.begincatch(i8*)
+declare void @llvm.eh.begincatch(i8*, i8*)
declare void @_Z16handle_exceptionv() #1
OpenPOWER on IntegriCloud