diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-21 02:30:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-21 02:30:42 +0000 |
commit | ec3c4b93ee43cac3749ade851f57a1863de06eb5 (patch) | |
tree | 75c445eb9d7e38fadbfd943ba1fb15ab3afb0648 /utils | |
parent | 096f10a51b037861069e280020dd2967fdce6b6e (diff) | |
download | external_llvm-ec3c4b93ee43cac3749ade851f57a1863de06eb5.zip external_llvm-ec3c4b93ee43cac3749ade851f57a1863de06eb5.tar.gz external_llvm-ec3c4b93ee43cac3749ade851f57a1863de06eb5.tar.bz2 |
fix a FileCheck bug where:
; CHECK: foo
; CHECK-NOT: foo
; CHECK: bar
would always fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82424 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 8f48c3a..a6c1f74 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -361,10 +361,10 @@ int main(int argc, char **argv) { } - // Otherwise, everything is good. Remember this as the last match and move - // on to the next one. - LastMatch = Buffer.data(); + // Otherwise, everything is good. Step over the matched text and remember + // the position after the match as the end of the last match. Buffer = Buffer.substr(CheckStr.Str.size()); + LastMatch = Buffer.data(); } return 0; |