Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / Inline / 2003-09-22-PHINodesInNormalInvokeDest.ll
index 43bdd309c987734ea75fb309a416a950d4cd21c8..ce7d1fb3276aad3c055c367bea7653b78cdfa480 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -inline -disable-output
 
-define i32 @main() {
+define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
 entry:
         invoke void @__main( )
                         to label %else unwind label %RethrowExcept
@@ -13,7 +13,7 @@ LJDecisionBB:           ; preds = %else
         br label %else
 
 RethrowExcept:          ; preds = %entry
-        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+        %exn = landingpad {i8*, i32}
                  cleanup
         ret i32 0
 }