Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / ADCE / dce_pure_invoke.ll
index 8e7851804575bf73fe4481fc3983a9415a7c8afc..e01c9feaeb065c6613f10757bfa9098a5f945e5b 100644 (file)
@@ -2,7 +2,7 @@
 
 declare i32 @strlen(i8*) readnone
 
-define i32 @test() {
+define i32 @test() 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              ; <i32>:1 [#uses=0]
@@ -11,7 +11,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
 }