diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-03-31 01:46:47 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-03-31 01:46:47 +0000 |
commit | 4ed4e93b187f5be809333970fff8e4ee3d4ed63e (patch) | |
tree | bcef4e3351ed8a7f212bd930a2357e3f2cd0b615 /clang/lib/Frontend | |
parent | a25fce8e9ed507a389d416424a66872fade320e4 (diff) | |
download | bcm5719-llvm-4ed4e93b187f5be809333970fff8e4ee3d4ed63e.tar.gz bcm5719-llvm-4ed4e93b187f5be809333970fff8e4ee3d4ed63e.zip |
Remove a redundant isValid() check
llvm-svn: 128606
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index 867d919fb30..a2284955300 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/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); |