From: Matt Arsenault Date: Sat, 26 Nov 2022 22:23:50 +0000 (-0500) Subject: LowerInvoke: Convert tests to opaque pointers X-Git-Tag: upstream/17.0.6~26192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db4fff925525872dfbbc3c45288f7860b602f64e;p=platform%2Fupstream%2Fllvm.git LowerInvoke: Convert tests to opaque pointers --- diff --git a/llvm/test/Transforms/LowerInvoke/2003-12-10-Crash.ll b/llvm/test/Transforms/LowerInvoke/2003-12-10-Crash.ll index 559f629..8c7dc4e 100644 --- a/llvm/test/Transforms/LowerInvoke/2003-12-10-Crash.ll +++ b/llvm/test/Transforms/LowerInvoke/2003-12-10-Crash.ll @@ -6,7 +6,7 @@ declare void @baz() 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 @@ -14,8 +14,8 @@ invoke_cont.0: ; preds = %then 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 ] ; [#uses=0] - %res = landingpad { i8* } + %__tmp.0 = phi ptr [ null, %invoke_cont.0 ], [ null, %then ] ; [#uses=0] + %res = landingpad { ptr } cleanup ret void try_exit: ; preds = %invoke_cont.0 diff --git a/llvm/test/Transforms/LowerInvoke/lowerinvoke.ll b/llvm/test/Transforms/LowerInvoke/lowerinvoke.ll index f3e6a88..2eca383 100644 --- a/llvm/test/Transforms/LowerInvoke/lowerinvoke.ll +++ b/llvm/test/Transforms/LowerInvoke/lowerinvoke.ll @@ -3,7 +3,7 @@ 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 @@ -11,7 +11,7 @@ cont: ret i32 %result lpad: %phi = phi i32 [ 99, %entry ] - %lp = landingpad { i8*, i32 } cleanup + %lp = landingpad { ptr, i32 } cleanup ret i32 %phi }