aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-01-28 05:13:18 +0000
committerEric Christopher <echristo@apple.com>2011-01-28 05:13:18 +0000
commite55e643f96488042862e415148377a02e2adc2e6 (patch)
tree666e08eb74dbe5df44a0714db7b2e9024bed2097
parentb608b987718c6d841115464f79ab2d1820a63e17 (diff)
Update exceptions.m for r124462.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124474 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjC/exceptions.m11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m
index 7cc0c1f250..568cddcc62 100644
--- a/test/CodeGenObjC/exceptions.m
+++ b/test/CodeGenObjC/exceptions.m
@@ -29,10 +29,10 @@ void f1() {
// CHECK-NEXT: call void @foo()
foo();
// CHECK-NEXT: call void @objc_exception_try_exit
- // CHECK-NEXT: ret void
+ // CHECK-NEXT: br label %finally.no_call_exit
// CHECK: call void asm sideeffect "", "=*m"
- // CHECK-NEXT: ret void
+ // CHECK-NEXT: br label %finally.no_call_exit
} @finally {
break;
}
@@ -65,8 +65,11 @@ int f2() {
// CHECK-NEXT: call void @foo()
// CHECK-NEXT: call void @objc_exception_try_exit
// CHECK-NEXT: [[T:%.*]] = load i32* [[X]]
- // CHECK-NEXT: ret i32 [[T]]
+ // CHECK-NEXT: br label %finally.no_call_exit
foo();
+
+ // CHECK: %tmp4 = phi i32
+ // CHECK-NEXT: ret i32 %tmp4
} @catch (id) {
// Landing pad. Note that we elide the re-enter.
// CHECK: call void asm sideeffect "", "=*m,=*m"(i32* [[X]]
@@ -77,7 +80,7 @@ int f2() {
// This store is dead.
// CHECK-NEXT: store i32 [[T2]], i32* [[X]]
- // CHECK-NEXT: ret i32 [[T2]]
+ // CHECK-NEXT: br label %finally.no_call_exit
x--;
}
return x;