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/Support/CommandLine.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/Support/CommandLine.cpp')
| -rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index b49ec368474..f761aa6fc1c 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1516,7 +1516,7 @@ public: // Invoke the printer. void operator=(bool Value) { - if (Value == false) + if (!Value) return; StrOptionPairVector Opts; @@ -1716,7 +1716,7 @@ static cl::opt<bool> PrintAllOptions( cl::init(false), cl::cat(GenericCategory)); void HelpPrinterWrapper::operator=(bool Value) { - if (Value == false) + if (!Value) return; // Decide which printer to invoke. If more than one option category is |

