diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-09 01:57:13 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-09 01:57:13 +0000 |
| commit | dc3f01e9cfc098bb2a55b103396eb3f0464b0c7a (patch) | |
| tree | 41e53ef86195787acb15962965c7475b8804771f /llvm/lib/IR/DiagnosticInfo.cpp | |
| parent | 2a08dca3f719f207ead372bc0b635c757efd41c6 (diff) | |
| download | bcm5719-llvm-dc3f01e9cfc098bb2a55b103396eb3f0464b0c7a.tar.gz bcm5719-llvm-dc3f01e9cfc098bb2a55b103396eb3f0464b0c7a.zip | |
Simplify expressions involving boolean constants with clang-tidy
Patch by Richard (legalize at xmission dot com).
Differential Revision: http://reviews.llvm.org/D8154
llvm-svn: 231617
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
| -rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index cfb699a3171..5608589a56e 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -129,7 +129,7 @@ void DiagnosticInfoSampleProfile::print(DiagnosticPrinter &DP) const { } bool DiagnosticInfoOptimizationBase::isLocationAvailable() const { - return getDebugLoc().isUnknown() == false; + return !getDebugLoc().isUnknown(); } void DiagnosticInfoOptimizationBase::getLocation(StringRef *Filename, |

