forked from OSchip/llvm-project
Apply clang-tidy fixes for readability-simplify-boolean-expr in Shape.cpp (NFC)
This commit is contained in:
parent
cd417c6a46
commit
35d7ebb1b7
|
@ -1717,7 +1717,7 @@ LogicalResult SplitAtOp::fold(ArrayRef<Attribute> operands,
|
|||
// Verify that the split point is in the correct range.
|
||||
// TODO: Constant fold to an "error".
|
||||
int64_t rank = shape.size();
|
||||
if (!(-rank <= splitPoint && splitPoint <= rank))
|
||||
if (-rank > splitPoint || splitPoint > rank)
|
||||
return failure();
|
||||
if (splitPoint < 0)
|
||||
splitPoint += shape.size();
|
||||
|
|
Loading…
Reference in New Issue