[PATCH] D76272: Fix memtag test.

Adrian Kuegel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 17 03:00:45 PDT 2020


akuegel created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
akuegel added a reviewer: bkramer.
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.

Right, we don't have names for values in release builds.


Matching %x makes the test fail.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76272

Files:
  clang/test/Driver/memtag.c


Index: clang/test/Driver/memtag.c
===================================================================
--- clang/test/Driver/memtag.c
+++ clang/test/Driver/memtag.c
@@ -17,7 +17,7 @@
 int foo() { int x; use(&x); return x; }
 
 // CHECK-NO-SAFETY: define dso_local i32 @foo()
-// CHECK-NO-SAFETY: %x = alloca i32, align 4{{$}}
+// CHECK-NO-SAFETY: %{{.*}} = alloca i32, align 4{{$}}
 
 // CHECK-SAFETY: define dso_local i32 @foo()
-// CHECK-SAFETY: %x = alloca i32, align 4, !stack-safe
+// CHECK-SAFETY: %{{.*}} = alloca i32, align 4, !stack-safe


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76272.250706.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200317/6d9254fa/attachment.bin>


More information about the cfe-commits mailing list