summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorRoger Ferrer Ibanez <rofirrim@gmail.com>2019-08-05 10:09:06 +0000
committerRoger Ferrer Ibanez <rofirrim@gmail.com>2019-08-05 10:09:06 +0000
commitf686e56e7d55bdd12603e51d81993e3febdacb76 (patch)
treebd807d2ed3473de9d077d3296e9881da33b3f317 /clang/test/CodeGen
parente834e306cb89357cae662f9ca301393f5d88bcd1 (diff)
downloadbcm5719-llvm-f686e56e7d55bdd12603e51d81993e3febdacb76.tar.gz
bcm5719-llvm-f686e56e7d55bdd12603e51d81993e3febdacb76.zip
Sidestep false positive due to a matching git repository name
I have failures in this test because the grep @b gets confused by the clang version including a repository name like this !1 = !{!"clang version 10.0.0 (git@build-machine:llvm/llvm-monorepo.git fe958c0e8c89ec663c8e551936778e2cbb460154)"} I considered something like grep -w but my understanding of the manpages was that that isn't super portable. So I think it is easier to make clang not to output that metadata using -fno-ident. Differential Revision: https://reviews.llvm.org/D65635 llvm-svn: 367826
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/constant-comparison.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/constant-comparison.c b/clang/test/CodeGen/constant-comparison.c
index 371cb179f90..e2b3f1a2a58 100644
--- a/clang/test/CodeGen/constant-comparison.c
+++ b/clang/test/CodeGen/constant-comparison.c
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning
-// RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1
+// RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1
int a, b;
int *c1 = 1 < 2 ? &a : &b;
OpenPOWER on IntegriCloud