diff options
author | John McCall <rjmccall@apple.com> | 2011-01-28 06:05:16 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-01-28 06:05:16 +0000 |
commit | a8af408fe40b92be02ed9c4d0169bc75a659854f (patch) | |
tree | 6400355381de2bec2fd9703ea27adb47fd548f55 | |
parent | e55e643f96488042862e415148377a02e2adc2e6 (diff) |
Not really any point to testing control flow in this test without
ret duplication.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124476 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenObjC/exceptions.m | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m index 568cddcc62..31805cb8df 100644 --- a/test/CodeGenObjC/exceptions.m +++ b/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; } |