Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / LTO / X86 / linkonce_odr_func.ll
index 7fa6527f47c70a2cf0e679f43e926b1f07cc6f6d..671b30a460ce4cd4ae55c22ed83fb3c385b07171 100644 (file)
@@ -46,7 +46,7 @@ declare void @f(void()*)
 
 declare void @p()
 
-define void @bar() {
+define void @bar() personality void()* @p {
 bb0:
   call void @foo1()
   call void @f(void()* @foo2)
@@ -56,6 +56,6 @@ bb1:
 bb2:
   ret void
 clean:
-  landingpad {i32, i32} personality void()* @p cleanup
+  landingpad {i32, i32} cleanup
   ret void
 }