[PGO] Use %t as the temporary profdata filename in the test cases.
[oota-llvm.git] / test / Transforms / DeadArgElim / 2009-03-17-MRE-Invoke.ll
index f251d6ce882c4a3cb82f6901202bef841d103f14..4adae850e78b79c69679b5cf953acfeda5031bf9 100644 (file)
@@ -5,16 +5,18 @@ define internal { i32, i32 } @foo() {
   ret {i32,i32} {i32 42, i32 4}
 }
 
-define i32 @bar() {
+define i32 @bar() personality i32 (...)* @__gxx_personality_v0 {
   %x = invoke {i32,i32} @foo() to label %T unwind label %T2
 T:
   %y = extractvalue {i32,i32} %x, 1
   ret i32 %y
 T2:
+  %exn = landingpad {i8*, i32}
+            cleanup
   unreachable
 }
 
-define i32 @bar2() {
+define i32 @bar2() personality i32 (...)* @__gxx_personality_v0 {
 entry:
   %x = invoke {i32,i32} @foo() to label %T unwind label %T2
 T:
@@ -22,5 +24,9 @@ T:
   %y = extractvalue {i32,i32} %x, 1
   ret i32 %y
 T2:
+  %exn = landingpad {i8*, i32}
+            cleanup
   unreachable
-}
\ No newline at end of file
+}
+
+declare i32 @__gxx_personality_v0(...)