1 ; Do not remove the invoke! 2 ; 3 ; RUN: opt < %s -simplifycfg -S | grep invoke 4 5 define i32 @test() { 6 invoke i32 @test( ) 7 to label %Ret unwind label %Ret ; <i32>:1 [#uses=0] 8 Ret: ; preds = %0, %0 9 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 10 catch i8* null 11 %A = add i32 0, 1 ; <i32> [#uses=1] 12 ret i32 %A 13 } 14 15 declare i32 @__gxx_personality_v0(...) 16