From: John McCall Date: Fri, 28 Jan 2011 06:05:16 +0000 (+0000) Subject: Not really any point to testing control flow in this test without X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8af408fe40b92be02ed9c4d0169bc75a659854f;p=clang 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 --- 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; }