[incrParse] Fix issue that did not report the first reparsed character as reparsed

This commit is contained in:
Alex Hoppen
2018-10-11 17:50:20 +02:00
parent 63becb530b
commit 9d9bb5377a

View File

@@ -248,8 +248,7 @@ struct ByteBasedSourceRange {
SourceRange toSourceRange(SourceManager &SourceMgr, unsigned BufferID) {
auto StartLoc = SourceMgr.getLocForOffset(BufferID, Start);
// SourceRange includes the last offset, we don't. So subtract 1
auto EndLoc = SourceMgr.getLocForOffset(BufferID, End - 1);
auto EndLoc = SourceMgr.getLocForOffset(BufferID, End);
return SourceRange(StartLoc, EndLoc);
}
};