2 // ignore-wasm32-bare compiled with panic=abort by default
4 // compile-flags: -O -C no-prepopulate-passes
22 // Check that the personality slot alloca gets a lifetime start in each cleanup block, not just
24 // CHECK: [[SLOT:%[0-9]+]] = alloca { i8*, i32 }
25 // CHECK-LABEL: cleanup:
26 // CHECK: [[BITCAST:%[0-9]+]] = bitcast { i8*, i32 }* [[SLOT]] to i8*
27 // CHECK-NEXT: call void @llvm.lifetime.start.{{.*}}({{.*}}, i8* [[BITCAST]])
28 // CHECK-LABEL: cleanup1:
29 // CHECK: [[BITCAST1:%[0-9]+]] = bitcast { i8*, i32 }* [[SLOT]] to i8*
30 // CHECK-NEXT: call void @llvm.lifetime.start.{{.*}}({{.*}}, i8* [[BITCAST1]])