]> granicus.if.org Git - clang/commitdiff
Make this test a little less dependent on exact optimizer results.
authorJohn McCall <rjmccall@apple.com>
Wed, 11 Aug 2010 02:06:44 +0000 (02:06 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 11 Aug 2010 02:06:44 +0000 (02:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110770 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/exceptions.m

index f8292dc7f151bb8593516707816765e8eaefb8af..b431e3712473b4e29d7029927040347f58de0468 100644 (file)
@@ -119,14 +119,14 @@ void f3() {
       // duplicating the finally block.
       while (x) f3_helper(3, &x);
 
-      // It's okay for this to turn into a test against 0.
-      // CHECK:  icmp eq i32 [[DEST2]], 5
-      // CHECK:  br i1
+      // This is a switch or maybe some chained branches, but relying
+      // on a specific result from the optimizer is really unstable.
+      // CHECK:  [[DEST2]]
     }
 
-    // It's okay for this to turn into a test against 0.
-    // CHECK:    icmp eq i32 [[DEST1]], 3
-    // CHECK:    br i1
+      // This is a switch or maybe some chained branches, but relying
+      // on a specific result from the optimizer is really unstable.
+    // CHECK:    [[DEST1]]
   }
 
   // CHECK:      call void @f3_helper(i32 4, i32* [[X]])