[cfe-commits] r46972 - /cfe/trunk/Driver/TextDiagnosticPrinter.cpp
Steve Naroff
snaroff at apple.com
Mon Feb 11 14:17:36 PST 2008
Author: snaroff
Date: Mon Feb 11 16:17:33 2008
New Revision: 46972
URL: http://llvm.org/viewvc/llvm-project?rev=46972&view=rev
Log:
Fix http://llvm.org/bugs/show_bug.cgi?id=2013.
Modified:
cfe/trunk/Driver/TextDiagnosticPrinter.cpp
Modified: cfe/trunk/Driver/TextDiagnosticPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/TextDiagnosticPrinter.cpp?rev=46972&r1=46971&r2=46972&view=diff
==============================================================================
--- cfe/trunk/Driver/TextDiagnosticPrinter.cpp (original)
+++ cfe/trunk/Driver/TextDiagnosticPrinter.cpp Mon Feb 11 16:17:33 2008
@@ -159,7 +159,7 @@
llvm::cerr << FormatDiagnostic(Diags, Level, ID, Strs, NumStrs) << "\n";
- if (!NoCaretDiagnostics && Pos.isValid() && ((LastLoc != Pos) && !Ranges)) {
+ if (!NoCaretDiagnostics && Pos.isValid() && ((LastLoc != Pos) || Ranges)) {
// Cache the LastLoc, it allows us to omit duplicate source/caret spewage.
LastLoc = Pos;
More information about the cfe-commits
mailing list