Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / X86 / global-sections.ll
index 8c61411e53eb63c5c6923c6cb6df1da6b16e0ce3..82547a6067429412d507bbac0dfcd36b03dadd26 100644 (file)
@@ -61,12 +61,12 @@ bb5:
 
 declare void @G()
 
-define void @F3(i32 %y) {
+define void @F3(i32 %y) personality i8* bitcast (void ()* @G to i8*) {
 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
   br label %bb2
 bb2: