declare void @bar()
-define void @foo() personality i32 (...)* @__gxx_personality_v0 {
+define void @foo() personality ptr @__gxx_personality_v0 {
then:
invoke void @baz( )
to label %invoke_cont.0 unwind label %try_catch
invoke void @bar( )
to label %try_exit unwind label %try_catch
try_catch: ; preds = %invoke_cont.0, %then
- %__tmp.0 = phi i32* [ null, %invoke_cont.0 ], [ null, %then ] ; <i32*> [#uses=0]
- %res = landingpad { i8* }
+ %__tmp.0 = phi ptr [ null, %invoke_cont.0 ], [ null, %then ] ; <ptr> [#uses=0]
+ %res = landingpad { ptr }
cleanup
ret void
try_exit: ; preds = %invoke_cont.0
declare i32 @external_func(i64 %arg)
-define i32 @invoke_test(i64 %arg) personality i8* null {
+define i32 @invoke_test(i64 %arg) personality ptr null {
entry:
%result = invoke fastcc i32 @external_func(i64 inreg %arg)
to label %cont unwind label %lpad
ret i32 %result
lpad:
%phi = phi i32 [ 99, %entry ]
- %lp = landingpad { i8*, i32 } cleanup
+ %lp = landingpad { ptr, i32 } cleanup
ret i32 %phi
}