Skip to content

Commit

Permalink
Apply clang-tidy fixes for readability-simplify-boolean-expr in Utils…
Browse files Browse the repository at this point in the history
….cpp (NFC)
  • Loading branch information
joker-eph committed Jun 28, 2022
1 parent 4aafebc commit cf3f477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Analysis/Presburger/Utils.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit cf3f477

Please sign in to comment.