Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / ExecutionEngine / MCJIT / eh-sm-pic.ll
index c73dcca5ee1c7175d9e8fc96e029370e00aa630b..24d8b2ceb4f6248f9000c6193550428bbbf64a42 100644 (file)
@@ -14,13 +14,13 @@ define void @throwException() {
   unreachable
 }
 
-define i32 @main() {
+define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
 entry:
   invoke void @throwException()
           to label %try.cont unwind label %lpad
 
 lpad:
-  %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+  %p = landingpad { i8*, i32 }
           catch i8* bitcast (i8** @_ZTIi to i8*)
   %e = extractvalue { i8*, i32 } %p, 0
   call i8* @__cxa_begin_catch(i8* %e)