Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / Generic / multiple-return-values-cross-block-with-invoke.ll
index a135c625fccc2b9b7a919c135e26d5424669d573..a21906cf6dc599094e856dd94738b458a5cf19dd 100644 (file)
@@ -2,7 +2,7 @@
 ; XFAIL: hexagon
 declare { i64, double } @wild()
 
-define void @foo(i64* %p, double* %q) nounwind {
+define void @foo(i64* %p, double* %q) nounwind personality i32 (...)* @__gxx_personality_v0 {
         %t = invoke { i64, double } @wild() to label %normal unwind label %handler
 
 normal:
@@ -13,7 +13,7 @@ normal:
        ret void
   
 handler:
-        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+        %exn = landingpad {i8*, i32}
                  catch i8* null
        ret void
 }