summaryrefslogtreecommitdiffstats
path: root/clang/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
commit01b322cb029e00a34ab09c2884f5d704a13484f3 (patch)
tree11d88c78a362f601cfe4cb91f128b6e25f37426d /clang/Basic/SourceManager.cpp
parent8a025806a44a270216fd14cec83b6840a9afed03 (diff)
downloadbcm5719-llvm-01b322cb029e00a34ab09c2884f5d704a13484f3.tar.gz
bcm5719-llvm-01b322cb029e00a34ab09c2884f5d704a13484f3.zip
Don't add an extra line to the end of the buffer, it doesn't really exist.
llvm-svn: 46330
Diffstat (limited to 'clang/Basic/SourceManager.cpp')
-rw-r--r--clang/Basic/SourceManager.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/Basic/SourceManager.cpp b/clang/Basic/SourceManager.cpp
index fc43a2f4c88..4f9753739ef 100644
--- a/clang/Basic/SourceManager.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud