aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-14 04:28:50 +0000
committerChris Lattner <sabre@nondot.org>2010-04-14 04:28:50 +0000
commitc745cec17c8881f072a4a7aad7ffe27f6197c631 (patch)
tree11432d57fb14d2213db1ebbb254c126dfe6cbb73 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parent851002d42e92f1560e4b670f4ace036391131265 (diff)
downloadllvm-c745cec17c8881f072a4a7aad7ffe27f6197c631.zip
llvm-c745cec17c8881f072a4a7aad7ffe27f6197c631.tar.gz
llvm-c745cec17c8881f072a4a7aad7ffe27f6197c631.tar.bz2
Improve line marker directive locations, patch by Jordy Rose
llvm-svn: 101226
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index b4718e9..b45188f 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -219,7 +219,7 @@ void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc,
SourceManager &SourceMgr = SM;
PresumedLoc UserLoc = SourceMgr.getPresumedLoc(Loc);
- unsigned NewLine = UserLoc.getLine()+1;
+ unsigned NewLine = UserLoc.getLine();
if (Reason == PPCallbacks::EnterFile) {
SourceLocation IncludeLoc = SourceMgr.getPresumedLoc(Loc).getIncludeLoc();