diff options
-rw-r--r-- | test/FileCheck/check-dag.txt | 1 | ||||
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/FileCheck/check-dag.txt b/test/FileCheck/check-dag.txt index 6325e06..2b5a475 100644 --- a/test/FileCheck/check-dag.txt +++ b/test/FileCheck/check-dag.txt @@ -22,4 +22,5 @@ mul r5, r10, r11 ; CHECK-DAG: add [[REG1:r[0-9]+]], r1, r2 ; CHECK-DAG: add [[REG2:r[0-9]+]], r3, r4 +; CHECK-NOT: xor ; CHECK-DAG: mul r5, [[REG1]], [[REG2]] diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index e252db9..8d5af58 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -1013,8 +1013,7 @@ size_t CheckString::CheckDag(const SourceMgr &SM, StringRef Buffer, // CHECK-DAG, verify that there's no 'not' strings occurred in that // region. StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); - size_t Pos = CheckNot(SM, SkippedRegion, NotStrings, VariableTable); - if (Pos != StringRef::npos) + if (CheckNot(SM, SkippedRegion, NotStrings, VariableTable)) return StringRef::npos; // Clear "not strings". NotStrings.clear(); |