forked from OSchip/llvm-project
Not really any point to testing control flow in this test without
ret duplication. llvm-svn: 124476
This commit is contained in:
parent
c5eb3733f7
commit
f26870c43d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue