summaryrefslogtreecommitdiffstats
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-17 22:45:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-17 22:45:57 +0000
commitc4d2d471ce410e22681951dc59359cee11ac52b9 (patch)
tree814ec6ef98e46c107f59e65d5d2c0126f19ef7a1 /llvm/utils/FileCheck/FileCheck.cpp
parent3775441379ecd84bb2cdea9796a86e63e55cd67d (diff)
downloadbcm5719-llvm-c4d2d471ce410e22681951dc59359cee11ac52b9.tar.gz
bcm5719-llvm-c4d2d471ce410e22681951dc59359cee11ac52b9.zip
Use function's argument instead of the global flag.
For now it happens the argument is always the same. llvm-svn: 190896
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 769749e0240..c91565378b4 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -670,11 +670,11 @@ static bool IsPartOfWord(char c) {
}
static Check::CheckType FindCheckType(StringRef &Buffer, StringRef Prefix) {
- char NextChar = Buffer[CheckPrefix.size()];
+ char NextChar = Buffer[Prefix.size()];
// Verify that the : is present after the prefix.
if (NextChar == ':') {
- Buffer = Buffer.substr(CheckPrefix.size() + 1);
+ Buffer = Buffer.substr(Prefix.size() + 1);
return Check::CheckPlain;
}
@@ -683,7 +683,7 @@ static Check::CheckType FindCheckType(StringRef &Buffer, StringRef Prefix) {
return Check::CheckNone;
}
- StringRef Rest = Buffer.drop_front(CheckPrefix.size() + 1);
+ StringRef Rest = Buffer.drop_front(Prefix.size() + 1);
if (Rest.startswith("NEXT:")) {
Buffer = Rest.drop_front(sizeof("NEXT:") - 1);
return Check::CheckNext;
OpenPOWER on IntegriCloud