From: Chris Lattner Date: Thu, 24 Jan 2008 23:25:53 +0000 (+0000) Subject: Don't add an extra line to the end of the buffer, it doesn't really exist. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13099923a2209899034e2ea0ca0e88f27fb7a8b2;p=clang Don't add an extra line to the end of the buffer, it doesn't really exist. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46330 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp index fc43a2f4c8..4f9753739e 100644 --- a/Basic/SourceManager.cpp +++ b/Basic/SourceManager.cpp @@ -285,7 +285,6 @@ static void ComputeLineNumbers(ContentCache* FI) { ++Offs, ++Buf; } } - LineOffsets.push_back(Offs); // Copy the offsets into the FileInfo structure. FI->NumLines = LineOffsets.size();