]> granicus.if.org Git - clang/commitdiff
Don't add an extra line to the end of the buffer, it doesn't really exist.
authorChris Lattner <sabre@nondot.org>
Thu, 24 Jan 2008 23:25:53 +0000 (23:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Jan 2008 23:25:53 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46330 91177308-0d34-0410-b5e6-96231b3b80d8

Basic/SourceManager.cpp

index fc43a2f4c883ae1aa098ba7b80c2635dbdf3b523..4f9753739efb48e84bab26376ea351aaf586bf6a 100644 (file)
@@ -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();