aboutsummaryrefslogtreecommitdiff
path: root/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-24 23:25:53 +0000
committerChris Lattner <sabre@nondot.org>2008-01-24 23:25:53 +0000
commit13099923a2209899034e2ea0ca0e88f27fb7a8b2 (patch)
treed7f3ef638057f0df71c8f4240ed74b94f442d967 /Basic/SourceManager.cpp
parentf13794e2a0bacb93163da7be810cbe0cd84492a1 (diff)
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
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r--Basic/SourceManager.cpp1
1 files changed, 0 insertions, 1 deletions
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();