Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / ExecutionEngine / MCJIT / Inputs / multi-module-eh-b.ll
index d7dbb032b5d0a6400be7ef879850128b40d91d43..d7beeb61cb4cedb368282f4931c1dbc0a9499eb2 100644 (file)
@@ -12,13 +12,13 @@ define void @throwException_B() {
   unreachable
 }
 
-define i32 @FB() {
+define i32 @FB() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
 entry:
   invoke void @throwException_B()
           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)