diff --git a/test/Transforms/GVN/rle.ll b/test/Transforms/GVN/rle.ll index 98e99b07d48..503a5bbacd1 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 8f48c3a0cf3..a6c1f74f6d6 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;