Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / DebugInfo / SystemZ / eh_frame_personality.ll
index 92ba34da456c6dd47de8a02ac76aaa52026a2243..323d328d470ae4e6465cacd882e34bc4a5bd153e 100644 (file)
@@ -6,13 +6,13 @@ declare i32 @__gxx_personality_v0(...)
 
 declare void @bar()
 
-define i64 @foo(i64 %lhs, i64 %rhs) {
+define i64 @foo(i64 %lhs, i64 %rhs) personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
   invoke void @bar() to label %end unwind label %clean
 end:
  ret i64 0
 
 clean:
-  %tst = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) cleanup
+  %tst = landingpad { i8*, i32 } cleanup
   ret i64 42
 }