]> granicus.if.org Git - clang/commitdiff
Remove a redundant isValid() check
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 31 Mar 2011 01:46:47 +0000 (01:46 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 31 Mar 2011 01:46:47 +0000 (01:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128606 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/TextDiagnosticPrinter.cpp

index 867d919fb30bdc3c42a6c982e4c324559da36185..a2284955300380bfaa4252976270cb31a0568b02 100644 (file)
@@ -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);