diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-11 16:48:02 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-11 16:48:02 +0000 |
commit | 563c18283926b18bbdb6d3ad6cf02594399e2baf (patch) | |
tree | d8cf8ee2b9bb1c5a131ad816f33b634bd9d35e88 /utils/FileCheck | |
parent | de2aa608438c1675bb69c2b2087663b9dfcf752b (diff) | |
download | external_llvm-563c18283926b18bbdb6d3ad6cf02594399e2baf.zip external_llvm-563c18283926b18bbdb6d3ad6cf02594399e2baf.tar.gz external_llvm-563c18283926b18bbdb6d3ad6cf02594399e2baf.tar.bz2 |
Fix handling of CHECK-DAG inside of CHECK-LABEL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck')
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index 120fdd7..37a1a2f 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -879,12 +879,10 @@ size_t CheckString::Check(const SourceMgr &SM, StringRef Buffer, size_t LastPos = 0; std::vector<const Pattern *> NotStrings; - if (CheckTy != Check::CheckLabel) { - // Match "dag strings" (with mixed "not strings" if any). - LastPos = CheckDag(SM, Buffer, NotStrings, VariableTable); - if (LastPos == StringRef::npos) - return StringRef::npos; - } + // Match "dag strings" (with mixed "not strings" if any). + LastPos = CheckDag(SM, Buffer, NotStrings, VariableTable); + if (LastPos == StringRef::npos) + return StringRef::npos; // Match itself from the last position after matching CHECK-DAG. StringRef MatchBuffer = Buffer.substr(LastPos); |