r243672 - removed hardcoding for attribute associated with dtor in test

Naomi Musgrave nmusgrave at google.com
Thu Jul 30 10:59:54 PDT 2015


Author: nmusgrave
Date: Thu Jul 30 12:59:54 2015
New Revision: 243672

URL: http://llvm.org/viewvc/llvm-project?rev=243672&view=rev
Log:
removed hardcoding for attribute associated with dtor in test

Modified:
    cfe/trunk/test/CodeGenCXX/sanitize-dtor-tail-call.cpp

Modified: cfe/trunk/test/CodeGenCXX/sanitize-dtor-tail-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/sanitize-dtor-tail-call.cpp?rev=243672&r1=243671&r2=243672&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/sanitize-dtor-tail-call.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/sanitize-dtor-tail-call.cpp Thu Jul 30 12:59:54 2015
@@ -14,11 +14,10 @@ struct Simple {
 
 Simple s;
 // Simple internal member is poisoned by compiler-generated dtor
-// CHECK-LABEL: define {{.*}}SimpleD2Ev
+// CHECK: define {{.*}}SimpleD2Ev{{.*}} [[ATTRIBUTE:#[0-9]]]
 // CHECK: {{^ *}}call void @__sanitizer_dtor_callback
 // CHECK-NOT: tail call void @__sanitizer_dtor_callback
 // CHECK: ret void
 
 // Destructor does not emit any tail calls
-// CHECK: attributes #1 = {{.*("disable-tail-calls"="true").*}}
-// CHECK: }{{$}}
+// CHECK: attributes [[ATTRIBUTE]] = {{.*}}"disable-tail-calls"="true"





More information about the cfe-commits mailing list