1 ; Test that we don't sink landingpads
2 ; RUN: opt -sink -S < %s | FileCheck %s
4 declare hidden void @g()
6 declare i32 @__gxx_personality_v0(...)
8 define void @f() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
11 to label %invoke.cont.15 unwind label %lpad
17 ; CHECK: %0 = landingpad { i8*, i32 }
19 %0 = landingpad { i8*, i32 }
22 to label %invoke.cont unwind label %lpad.1
25 ; CHECK-NOT: %0 = landingpad { i8*, i32 }
30 %1 = landingpad { i8*, i32 }
32 resume { i8*, i32 } %1