aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/GVN/rle.ll1
-rw-r--r--utils/FileCheck/FileCheck.cpp6
2 files changed, 3 insertions, 4 deletions
diff --git a/test/Transforms/GVN/rle.ll b/test/Transforms/GVN/rle.ll
index 98e99b0..503a5bb 100644
--- a/test/Transforms/GVN/rle.ll
+++ b/test/Transforms/GVN/rle.ll
@@ -73,7 +73,6 @@ F:
; CHECK: @coerce_mustalias4
; CHECK: %A = load i32* %P
-; CHECK: bitcast
; CHECK-NOT: load
; CHECK: ret float
; CHECK: F:
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;