Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / IndVarSimplify / 2005-02-17-TruncateExprCrash.ll
index 16ad635a92056ba420f933f3f3f873fe83af426a..a0dac7a29cc8144277791c54a5f735eaa21ebeec 100644 (file)
@@ -4,13 +4,13 @@ declare void @q_atomic_increment()
 
 declare void @_Z9qt_assertPKcS0_i()
 
-define void @_ZN13QMetaResourceC1EPKh() {
+define void @_ZN13QMetaResourceC1EPKh() personality i32 (...)* @__gxx_personality_v0 {
 entry:
        invoke void @_Z9qt_assertPKcS0_i( )
                        to label %endif.1 unwind label %then.i.i551
 
 then.i.i551:           ; preds = %entry
-        %exn551 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+        %exn551 = landingpad {i8*, i32}
                  cleanup
        ret void
 
@@ -22,7 +22,7 @@ then.2:               ; preds = %endif.1
                        to label %loopentry.0 unwind label %invoke_catch.6
 
 invoke_catch.6:                ; preds = %then.2
-        %exn6 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+        %exn6 = landingpad {i8*, i32}
                  cleanup
        ret void