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 | b9f2bf46f717c4e6908e73b5a813eb641c1b0477 (patch) | |
tree | cb25216bbe6781058809c3c93f216c0baf6f1e03 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | a18322cea5771cfe72400690f6d7f9819982e23d (diff) | |
download | bcm5719-llvm-b9f2bf46f717c4e6908e73b5a813eb641c1b0477.tar.gz bcm5719-llvm-b9f2bf46f717c4e6908e73b5a813eb641c1b0477.zip |
fix a FileCheck bug where:
; CHECK: foo
; CHECK-NOT: foo
; CHECK: bar
would always fail.
llvm-svn: 82424
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 8f48c3a0cf3..a6c1f74f6d6 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/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; |