[cfe-commits] r46330 - /cfe/trunk/Basic/SourceManager.cpp

Chris Lattner sabre at nondot.org
Thu Jan 24 15:25:54 PST 2008


Author: lattner
Date: Thu Jan 24 17:25:53 2008
New Revision: 46330

URL: http://llvm.org/viewvc/llvm-project?rev=46330&view=rev
Log:
Don't add an extra line to the end of the buffer, it doesn't really exist.

Modified:
    cfe/trunk/Basic/SourceManager.cpp

Modified: cfe/trunk/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/SourceManager.cpp?rev=46330&r1=46329&r2=46330&view=diff

==============================================================================
--- cfe/trunk/Basic/SourceManager.cpp (original)
+++ cfe/trunk/Basic/SourceManager.cpp Thu Jan 24 17:25:53 2008
@@ -285,7 +285,6 @@
       ++Offs, ++Buf;
     }
   }
-  LineOffsets.push_back(Offs);
   
   // Copy the offsets into the FileInfo structure.
   FI->NumLines = LineOffsets.size();





More information about the cfe-commits mailing list