commit | 58de026dd5865e478ac8f5f84be1b0169cf9c131 | [log] [tgz] |
---|---|---|
author | Steve Naroff <snaroff@apple.com> | Mon Feb 11 22:17:33 2008 +0000 |
committer | Steve Naroff <snaroff@apple.com> | Mon Feb 11 22:17:33 2008 +0000 |
tree | a141eabde73b0701a30852cebf34ac166af87c72 | |
parent | 406db935610a6e4f41c151d85b623c43967ba422 [diff] |
Fix http://llvm.org/bugs/show_bug.cgi?id=2013. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46972 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/TextDiagnosticPrinter.cpp b/Driver/TextDiagnosticPrinter.cpp index 7c87f4b..adfa88b 100644 --- a/Driver/TextDiagnosticPrinter.cpp +++ b/Driver/TextDiagnosticPrinter.cpp
@@ -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;