Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / ARM / eh-resume-darwin.ll
index d1252f4c9867e8bff1d560b0659db936b9168a67..0cd49775cfb4cf370032325c094f619f8e9bdf36 100644 (file)
@@ -5,7 +5,7 @@ declare void @func()
 
 declare i32 @__gxx_personality_sj0(...)
 
-define void @test0() {
+define void @test0() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
 entry:
   invoke void @func()
     to label %cont unwind label %lpad
@@ -14,7 +14,7 @@ cont:
   ret void
 
 lpad:
-  %exn = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
+  %exn = landingpad { i8*, i32 }
            cleanup
   resume { i8*, i32 } %exn
 }