Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / X86 / exception-label.ll
index cafa1e630b96afa1602f5d2ac5aa90af5c9fef3c..2270d2da1801e4b0dea0caa8f77fcd98e10814ba 100644 (file)
@@ -8,13 +8,13 @@
 
 declare void @g()
 
-define void @f() {
+define void @f() personality i8* bitcast (void ()* @g to i8*) {
 bb0:
   call void asm ".Lexception0:", ""()
   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