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