From: Matt Beaumont-Gay Date: Thu, 31 Mar 2011 01:46:47 +0000 (+0000) Subject: Remove a redundant isValid() check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32ad9353327afb9e4e69e16dfffaab704eeaffbe;p=clang Remove a redundant isValid() check git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/TextDiagnosticPrinter.cpp b/lib/Frontend/TextDiagnosticPrinter.cpp index 867d919fb3..a228495530 100644 --- a/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/lib/Frontend/TextDiagnosticPrinter.cpp @@ -815,7 +815,7 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic::Level Level, } // Compute the column number. - if (DiagOpts->ShowLocation && PLoc.isValid()) { + if (DiagOpts->ShowLocation) { if (DiagOpts->ShowColors) OS.changeColor(savedColor, true);