[cfe-commits] r102048 - /cfe/trunk/test/CodeGenCXX/eh.cpp

John McCall rjmccall at apple.com
Wed Apr 21 20:27:09 PDT 2010


Author: rjmccall
Date: Wed Apr 21 22:27:09 2010
New Revision: 102048

URL: http://llvm.org/viewvc/llvm-project?rev=102048&view=rev
Log:
Neuter this testcase a little.  The way LLVM writes labels for anonymous blocks
makes it impossible to check labels.


Modified:
    cfe/trunk/test/CodeGenCXX/eh.cpp

Modified: cfe/trunk/test/CodeGenCXX/eh.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/eh.cpp?rev=102048&r1=102047&r2=102048&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/eh.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/eh.cpp Wed Apr 21 22:27:09 2010
@@ -45,8 +45,8 @@
 // CHECK-NEXT:  [[EXN:%.*]] = bitcast i8* [[EXNOBJ]] to [[DSTAR:%[^*]*\*]]
 // CHECK-NEXT:  invoke void @_ZN7test2_DC1ERKS_([[DSTAR]] [[EXN]], [[DSTAR]] @d2)
 // CHECK-NEXT:     to label %[[CONT:.*]] unwind label %{{.*}}
-// CHECK:     [[CONT]]:
-// CHECK-NEXT:  store i1 false, i1* [[FREEVAR]]
+//      :     [[CONT]]:   (can't check this in Release-Asserts builds)
+// CHECK:       store i1 false, i1* [[FREEVAR]]
 // CHECK-NEXT:  call void @__cxa_throw(i8* [[EXNOBJ]], i8* bitcast (%{{.*}}* @_ZTI7test2_D to i8*), i8* null) noreturn
 // CHECK-NEXT:  unreachable
 
@@ -101,6 +101,6 @@
 // CHECK-NEXT: invoke void @_ZN5test51AC1Ev([[A]]* [[EXNCAST]])
 // CHECK:      invoke void @__cxa_throw(i8* [[EXNOBJ]], i8* bitcast ({{%.*}}* @_ZTIN5test51AE to i8*), i8* bitcast (void ([[A]]*)* @_ZN5test51AD1Ev to i8*)) noreturn
 // CHECK-NEXT:   to label {{%.*}} unwind label %[[HANDLER:[^ ]*]]
-// CHECK:    [[HANDLER]]:
+//      :    [[HANDLER]]:  (can't check this in Release-Asserts builds)
 // CHECK:      {{%.*}} = call i32 @llvm.eh.typeid.for(i8* bitcast ({{%.*}}* @_ZTIN5test51AE to i8*))
 }





More information about the cfe-commits mailing list