1 ; RUN: opt < %s -simplifycfg -S | FileCheck %s 2 3 ; CHECK-NOT: invoke 4 ; CHECK-NOT: landingpad 5 6 declare void @bar() 7 8 define i32 @foo() personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0 { 9 entry: 10 invoke void @bar() 11 to label %return unwind label %lpad 12 13 return: 14 ret i32 0 15 16 lpad: 17 %lp = landingpad { i8*, i32 } 18 cleanup 19 resume { i8*, i32 } %lp 20 } 21 22 declare i32 @__gxx_personality_v0(i32, i64, i8*, i8*) 23