Skip to content

Commit 6c8ad83

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in EmulateNarrowType.cpp (NFC)
1 parent 29128f2 commit 6c8ad83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ convertCastingOp(ConversionPatternRewriter &rewriter,
7171
}
7272

7373
SmallVector<int64_t> size;
74-
if (sizes.size())
74+
if (!sizes.empty())
7575
size.push_back(llvm::divideCeilSigned(sizes[0], elementsPerByte));
7676
offset = offset / elementsPerByte;
7777

0 commit comments

Comments
 (0)