summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-19 19:10:04 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-19 19:10:04 +0000
commit0fff6d3c06fe3b86904580f523a0f77f12eefd1b (patch)
treeea2a8e7197b7a17f79c8e09272d5cbae931af634 /clang/lib/Lex/Preprocessor.cpp
parent2a287917896e2a597da4672ed9e8ff65162d2a42 (diff)
downloadbcm5719-llvm-0fff6d3c06fe3b86904580f523a0f77f12eefd1b.tar.gz
bcm5719-llvm-0fff6d3c06fe3b86904580f523a0f77f12eefd1b.zip
Patch by
"When dumping the tokens (-dumptokens output type), the column numbers are not correctly shown. This patch fixes that issue." llvm-svn: 53796
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 32ee8f0c817..631b8361e90 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -172,7 +172,7 @@ void Preprocessor::DumpLocation(SourceLocation Loc) const {
SourceLocation LogLoc = SourceMgr.getLogicalLoc(Loc);
llvm::cerr << SourceMgr.getSourceName(LogLoc) << ':'
<< SourceMgr.getLineNumber(LogLoc) << ':'
- << SourceMgr.getLineNumber(LogLoc);
+ << SourceMgr.getColumnNumber(LogLoc);
SourceLocation PhysLoc = SourceMgr.getPhysicalLoc(Loc);
if (PhysLoc != LogLoc) {
OpenPOWER on IntegriCloud