forked from OSchip/llvm-project
Apply clang-tidy fixes for readability-simplify-boolean-expr in Utils.cpp (NFC)
This commit is contained in:
parent
4aafebce52
commit
cf3f477d30
|
@ -120,7 +120,7 @@ static LogicalResult getDivRepr(const IntegerRelation &cst, unsigned pos,
|
|||
|
||||
// Check if `c` satisfies the condition `0 <= c <= divisor - 1`. This also
|
||||
// implictly checks that `divisor` is positive.
|
||||
if (!(c >= 0 && c <= divisor - 1))
|
||||
if (c < 0 || c > divisor - 1)
|
||||
return failure();
|
||||
|
||||
// The inequality pair can be used to extract the division.
|
||||
|
|
Loading…
Reference in New Issue