Skip to content

Commit cdeaeee

Browse files
committed
[mlir] Apply ClangTidy readability fix (NFC)
1 parent ba8facf commit cdeaeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static Value createMul(Location loc, Value x, Value y, Type accType,
5050
// Delinearizes the given composite `index` by the basis specified in `factors`.
5151
static SmallVector<Value> unrollIndex(OpBuilder &b, Location loc, Value index,
5252
ArrayRef<int64_t> factors) {
53-
assert(factors.size() >= 1 && "empty factor list");
53+
assert(!factors.empty() && "empty factor list");
5454
SmallVector<Value> basis;
5555
for (int64_t f : factors)
5656
basis.push_back(b.create<arith::ConstantOp>(loc, b.getIndexAttr(f)));

0 commit comments

Comments
 (0)