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/Verifier.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/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 1b66fa0b1b8..06104d54cba 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -2709,7 +2709,7 @@ Verifier::VerifyIntrinsicIsVarArg(bool isVarArg, // If there are no descriptors left, then it can't be a vararg. if (Infos.empty()) - return isVarArg ? true : false; + return isVarArg; // There should be only one descriptor remaining at this point. if (Infos.size() != 1) @@ -2719,7 +2719,7 @@ Verifier::VerifyIntrinsicIsVarArg(bool isVarArg, IITDescriptor D = Infos.front(); Infos = Infos.slice(1); if (D.Kind == IITDescriptor::VarArg) - return isVarArg ? false : true; + return !isVarArg; return true; } |