Skip to content

Commit 1ddc541

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in TransformOps.cpp (NFC)
1 parent dbc40b3 commit 1ddc541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Transform/IR/TransformOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ transform::SplitHandleOp::apply(transform::TransformRewriter &rewriter,
22232223
// - "fail_on_payload_too_small" is set to "false", or
22242224
// - "pass_through_empty_handle" is set to "true" and there are 0 payload ops.
22252225
if (numPayloadOps < getNumResults() && getFailOnPayloadTooSmall() &&
2226-
!(numPayloadOps == 0 && getPassThroughEmptyHandle()))
2226+
(numPayloadOps != 0 || !getPassThroughEmptyHandle()))
22272227
return produceNumOpsError();
22282228

22292229
// Distribute payload ops.

0 commit comments

Comments
 (0)