Skip to content

Commit 690b9c9

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in DecomposeGenericByUnfoldingPermutation.cpp (NFC)
1 parent f2b6ec6 commit 690b9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ LogicalResult DecomposeProjectedPermutation::matchAndRewrite(
208208

209209
// Does it require broadcast?
210210
if (!broadcastedDims.empty()) {
211-
assert(broadcastedDims.size() && "should have non size broadcast");
211+
assert(!broadcastedDims.empty() && "should have non size broadcast");
212212
Value emptyTensor = tensor::EmptyOp::create(rewriter, loc, outputShape,
213213
inputRTType.getElementType());
214214

0 commit comments

Comments
 (0)