aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2020-05-11 19:40:15 -0400
committerJoel E. Denny <jdenny.ornl@gmail.com>2020-05-11 19:41:22 -0400
commite1ed4d9eb506a38772bfa659dcc09052eaff2e5d (patch)
tree26369a207c592875b0f9989496d89fd6eaff5e15 /llvm/utils/FileCheck/FileCheck.cpp
parentd0e7fd6b624b1943f3780a69883690017d2efad2 (diff)
downloadllvm-e1ed4d9eb506a38772bfa659dcc09052eaff2e5d.zip
llvm-e1ed4d9eb506a38772bfa659dcc09052eaff2e5d.tar.gz
llvm-e1ed4d9eb506a38772bfa659dcc09052eaff2e5d.tar.bz2
Revert "[FileCheck] Make invalid prefix diagnostics more precise"
This reverts commit a78e13745d4ee4a42e41ebbe698159f651515fc5 to try to fix a bot: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/23489
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 46821ec..3f7d777 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -601,8 +601,12 @@ int main(int argc, char **argv) {
Req.Verbose = true;
FileCheck FC(Req);
- if (!FC.ValidateCheckPrefixes())
+ if (!FC.ValidateCheckPrefixes()) {
+ errs() << "Supplied check-prefix is invalid! Prefixes must be unique and "
+ "start with a letter and contain only alphanumeric characters, "
+ "hyphens and underscores\n";
return 2;
+ }
Regex PrefixRE = FC.buildCheckPrefixRegex();
std::string REError;