diff options
author | Steve Naroff <snaroff@apple.com> | 2008-02-11 22:17:33 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-02-11 22:17:33 +0000 |
commit | 58de026dd5865e478ac8f5f84be1b0169cf9c131 (patch) | |
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
-rw-r--r-- | Driver/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/TextDiagnosticPrinter.cpp b/Driver/TextDiagnosticPrinter.cpp index 7c87f4b78c..adfa88b855 100644 --- a/Driver/TextDiagnosticPrinter.cpp +++ b/Driver/TextDiagnosticPrinter.cpp @@ -159,7 +159,7 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic &Diags, 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; |