diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-17 22:45:57 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-17 22:45:57 +0000 |
commit | 53bb26f61c65b6f63e9aa2950429bb889683bc11 (patch) | |
tree | defec3e1bf28738b1f0e80a5b2c28cb0c938144d /utils | |
parent | 4f67afc3d67d9a68f1b37767c9c2966a775186bd (diff) | |
download | external_llvm-53bb26f61c65b6f63e9aa2950429bb889683bc11.zip external_llvm-53bb26f61c65b6f63e9aa2950429bb889683bc11.tar.gz external_llvm-53bb26f61c65b6f63e9aa2950429bb889683bc11.tar.bz2 |
Use function's argument instead of the global flag.
For now it happens the argument is always the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index 769749e..c915653 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/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; |