Skip to content

Commit a854982

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in TensorOps.cpp (NFC)
1 parent 69bcb69 commit a854982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Tensor/IR/TensorOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ RankedTensorType PadOp::inferResultType(RankedTensorType sourceType,
27972797
return RankedTensorType();
27982798
if (staticHigh.size() != rank)
27992799
return RankedTensorType();
2800-
if (!(resultShape.empty() || resultShape.size() == rank))
2800+
if (!resultShape.empty() && resultShape.size() != rank)
28012801
return RankedTensorType();
28022802

28032803
SmallVector<int64_t, 4> inferredShape;

0 commit comments

Comments
 (0)