summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/exceptions.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/exceptions.m')
-rw-r--r--test/CodeGenObjC/exceptions.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m
index 2472869..24fb657 100644
--- a/test/CodeGenObjC/exceptions.m
+++ b/test/CodeGenObjC/exceptions.m
@@ -53,11 +53,7 @@ int f2() {
// CHECK-NEXT: [[CAUGHT:%.*]] = icmp eq i32 [[SETJMP]], 0
// CHECK-NEXT: br i1 [[CAUGHT]]
@try {
- // If the optimizers ever figure out how to make this store 6,
- // that's okay.
- // CHECK: [[T1:%.*]] = load i32* [[X]]
- // CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], 1
- // CHECK-NEXT: store i32 [[T2]], i32* [[X]]
+ // CHECK: store i32 6, i32* [[X]]
x++;
// CHECK-NEXT: call void asm sideeffect "", "*m,*m"(i32* [[X]]
// CHECK-NEXT: call void @foo()
OpenPOWER on IntegriCloud