llvm-svn: 46972
This commit is contained in:
Steve Naroff 2008-02-11 22:17:33 +00:00
parent b5fc2551e4
commit 5a858df0b3
1 changed files with 1 additions and 1 deletions

View File

@ -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;