[clang] 5156e38 - Fix memtag test.
Adrian Kuegel via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 17 03:08:21 PDT 2020
Author: Adrian Kuegel
Date: 2020-03-17T11:06:32+01:00
New Revision: 5156e38eb1d3d0ef5bce1fc8491a05f3cfca0f89
URL: https://github.com/llvm/llvm-project/commit/5156e38eb1d3d0ef5bce1fc8491a05f3cfca0f89
DIFF: https://github.com/llvm/llvm-project/commit/5156e38eb1d3d0ef5bce1fc8491a05f3cfca0f89.diff
LOG: Fix memtag test.
Summary: Matching %x makes the test fail.
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D76272
Added:
Modified:
clang/test/Driver/memtag.c
Removed:
################################################################################
diff --git a/clang/test/Driver/memtag.c b/clang/test/Driver/memtag.c
index 9c548910048e..bfe453beef56 100644
--- a/clang/test/Driver/memtag.c
+++ b/clang/test/Driver/memtag.c
@@ -17,7 +17,7 @@ __attribute__((noinline)) void use(int *p) { *p = z; }
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
More information about the cfe-commits
mailing list