Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / X86 / eh-label.ll
index aff0bcfffcfee484627b8d6b9aca4276ed65eb8d..d349174f95b74c39d77fc401d7916d26a398bf65 100644 (file)
@@ -3,7 +3,7 @@
 
 declare void @g()
 
-define void @f() {
+define void @f() personality i8* bitcast (void ()* @g to i8*) {
 bb0:
   call void asm ".Lfunc_end0:", ""()
 ; CHECK: #APP
@@ -12,7 +12,7 @@ bb0:
 
   invoke void @g() to label %bb2 unwind label %bb1
 bb1:
-  landingpad { i8*, i32 } personality i8* bitcast (void ()* @g to i8*)
+  landingpad { i8*, i32 }
           catch i8* null
   call void @g()
   ret void