[InstCombine] Preserve metadata when merging loads that are phi
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2011-09-05-TrivialLPad.ll
index 7558419a2ebdacab551c0223b44f98a71aa220d4..111434b7fcdbb01fb53a95521e9559828705f6bd 100644 (file)
@@ -5,7 +5,7 @@
 
 declare void @bar()
 
-define i32 @foo() {
+define i32 @foo() personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0 {
 entry:
   invoke void @bar()
           to label %return unwind label %lpad
@@ -14,7 +14,7 @@ return:
   ret i32 0
 
 lpad:
-  %lp = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0
+  %lp = landingpad { i8*, i32 }
           cleanup
   resume { i8*, i32 } %lp
 }