mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Simplify expressions involving boolean constants with clang-tidy
Patch by Richard (legalize at xmission dot com). Differential Revision: http://reviews.llvm.org/D8154 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -247,7 +247,7 @@ namespace {
|
||||
return true;
|
||||
else if (Incr1 == Incr2) {
|
||||
// Favors subsumption.
|
||||
if (C1->NeedSubsumption == false && C2->NeedSubsumption == true)
|
||||
if (!C1->NeedSubsumption && C2->NeedSubsumption)
|
||||
return true;
|
||||
else if (C1->NeedSubsumption == C2->NeedSubsumption) {
|
||||
// Favors diamond over triangle, etc.
|
||||
|
Reference in New Issue
Block a user