[cfe-commits] r128606 - /cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
Matt Beaumont-Gay
matthewbg at google.com
Wed Mar 30 18:46:48 PDT 2011
Author: matthewbg
Date: Wed Mar 30 20:46:47 2011
New Revision: 128606
URL: http://llvm.org/viewvc/llvm-project?rev=128606&view=rev
Log:
Remove a redundant isValid() check
Modified:
cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
Modified: cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp?rev=128606&r1=128605&r2=128606&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp Wed Mar 30 20:46:47 2011
@@ -815,7 +815,7 @@
}
// Compute the column number.
- if (DiagOpts->ShowLocation && PLoc.isValid()) {
+ if (DiagOpts->ShowLocation) {
if (DiagOpts->ShowColors)
OS.changeColor(savedColor, true);
More information about the cfe-commits
mailing list