summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-02 21:13:31 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-02 21:13:31 +0000
commit3567d27062327df11daf918ea9da2cd603686f9e (patch)
tree8748db6ddec0e470a49227ce25b5ed65b7b78ed9 /llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll
parent9a37bc91d2d8a60f7872546f72d98123ae2288f6 (diff)
downloadbcm5719-llvm-3567d27062327df11daf918ea9da2cd603686f9e.tar.gz
bcm5719-llvm-3567d27062327df11daf918ea9da2cd603686f9e.zip
[WinEH] Make llvm.eh.actions use frameescape indices for catch params
This makes it possible to use the same representation of llvm.eh.actions in outlined handlers as we use in the parent function because i32's are just constants that can be copied freely between functions. I had to add a sentinel alloca to the list of child allocas so that we don't try to sink the catch object into the handler. Normally, one would use nullptr for this kind of thing, but TinyPtrVector doesn't support null elements. More than that, it's elements have to have a suitable alignment. Therefore, I settled on this for my sentinel: AllocaInst *getCatchObjectSentinel() { return static_cast<AllocaInst *>(nullptr) + 1; } llvm-svn: 233947
Diffstat (limited to 'llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll')
-rw-r--r--llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll b/llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll
index adb048a982b..279c4bf6fc7 100644
--- a/llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll
+++ b/llvm/test/CodeGen/WinEH/cppeh-catch-scalar.ll
@@ -43,7 +43,7 @@ invoke.cont: ; preds = %entry
; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %entry
; CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIi to i8*)
-; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions(i32 1, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* (i8*, i8*)* @_Z4testv.catch)
+; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions(i32 1, i8* bitcast (i8** @_ZTIi to i8*), i32 0, i8* (i8*, i8*)* @_Z4testv.catch)
; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont]
lpad: ; preds = %entry
OpenPOWER on IntegriCloud