Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / Mem2Reg / crash.ll
index a4a31b112ee8e70c586223521865c985462ecea5..d7ed1dd13e811c88e6941247de40d6110bdb11cc 100644 (file)
@@ -3,7 +3,7 @@
 
 declare i32 @test1f()
 
-define i32 @test1() {
+define i32 @test1() personality i32 (...)* @__gxx_personality_v0 {
 entry:
   %whichFlag = alloca i32
   %A = invoke i32 @test1f()
@@ -18,7 +18,7 @@ bb15:
   ret i32 %B
 
 lpad86:
-  %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+  %exn = landingpad {i8*, i32}
            cleanup
   br label %bb15