Skip to content
Snippets Groups Projects
Commit 01b322cb authored by Chris Lattner's avatar Chris Lattner
Browse files

Don't add an extra line to the end of the buffer, it doesn't really exist.

llvm-svn: 46330
parent 8a025806
No related branches found
No related tags found
No related merge requests found
...@@ -285,7 +285,6 @@ static void ComputeLineNumbers(ContentCache* FI) { ...@@ -285,7 +285,6 @@ static void ComputeLineNumbers(ContentCache* FI) {
++Offs, ++Buf; ++Offs, ++Buf;
} }
} }
LineOffsets.push_back(Offs);
// Copy the offsets into the FileInfo structure. // Copy the offsets into the FileInfo structure.
FI->NumLines = LineOffsets.size(); FI->NumLines = LineOffsets.size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment