[PGO] Rename the profdata filename to avoid the conflict b/w tests.
[oota-llvm.git] / test / Transforms / Inline / invoke_test-2.ll
index bbb9ab055393d61d9e38e946aeb3d1aa428350a2..b3119b99337bfc08db4a9628897873e1e478e881 100644 (file)
@@ -6,7 +6,7 @@
 
 declare void @might_throw()
 
-define internal i32 @callee() {
+define internal i32 @callee() personality i32 (...)* @__gxx_personality_v0 {
         invoke void @might_throw( )
                         to label %cont unwind label %exc
 
@@ -14,11 +14,13 @@ cont:           ; preds = %0
         ret i32 0
 
 exc:            ; preds = %0
+        %exn = landingpad {i8*, i32}
+                 cleanup
         ret i32 1
 }
 
 ; caller returns true if might_throw throws an exception... callee cannot throw.
-define i32 @caller() {
+define i32 @caller() personality i32 (...)* @__gxx_personality_v0 {
         %X = invoke i32 @callee( )
                         to label %cont unwind label %UnreachableExceptionHandler                ; <i32> [#uses=1]
 
@@ -26,5 +28,9 @@ cont:           ; preds = %0
         ret i32 %X
 
 UnreachableExceptionHandler:            ; preds = %0
+        %exn = landingpad {i8*, i32}
+                 cleanup
         ret i32 -1
 }
+
+declare i32 @__gxx_personality_v0(...)