Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / BDCE / dce-pure.ll
index 6a432fcc42d70a10739f5cd5774ea3cd3b33c6fe..a379fa4a00395726f9109d0ef97de0bf36b5d652 100644 (file)
@@ -11,7 +11,7 @@ define void @test1() {
 ; CHECK: ret void
 }
 
-define i32 @test2() {
+define i32 @test2() personality i32 (...)* @__gxx_personality_v0 {
   ; invoke of pure function should not be deleted!
   invoke i32 @strlen( i8* null ) readnone
                   to label %Cont unwind label %Other
@@ -20,7 +20,7 @@ Cont:           ; preds = %0
   ret i32 0
 
 Other:          ; preds = %0
-   %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+   %exn = landingpad {i8*, i32}
             cleanup
   ret i32 1