summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-28 06:05:16 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-28 06:05:16 +0000
commitf26870c43d90c7f3fbf976e5cc342bd06acbc09a (patch)
tree4b71ec1a7c216571559c2d190cb84aa2cd30282e
parentc5eb3733f7bf7591e86cab9c0fdec14c5b3f806d (diff)
downloadbcm5719-llvm-f26870c43d90c7f3fbf976e5cc342bd06acbc09a.tar.gz
bcm5719-llvm-f26870c43d90c7f3fbf976e5cc342bd06acbc09a.zip
Not really any point to testing control flow in this test without
ret duplication. llvm-svn: 124476
-rw-r--r--clang/test/CodeGenObjC/exceptions.m9
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/test/CodeGenObjC/exceptions.m b/clang/test/CodeGenObjC/exceptions.m
index 568cddcc62e..31805cb8df4 100644
--- a/clang/test/CodeGenObjC/exceptions.m
+++ b/clang/test/CodeGenObjC/exceptions.m
@@ -29,10 +29,8 @@ void f1() {
// CHECK-NEXT: call void @foo()
foo();
// CHECK-NEXT: call void @objc_exception_try_exit
- // CHECK-NEXT: br label %finally.no_call_exit
// CHECK: call void asm sideeffect "", "=*m"
- // CHECK-NEXT: br label %finally.no_call_exit
} @finally {
break;
}
@@ -65,11 +63,7 @@ int f2() {
// CHECK-NEXT: call void @foo()
// CHECK-NEXT: call void @objc_exception_try_exit
// CHECK-NEXT: [[T:%.*]] = load i32* [[X]]
- // 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]]
@@ -79,10 +73,9 @@ int f2() {
// This store is dead.
// CHECK-NEXT: store i32 [[T2]], i32* [[X]]
-
- // CHECK-NEXT: br label %finally.no_call_exit
x--;
}
+
return x;
}
OpenPOWER on IntegriCloud