From: Adrian Kuegel Date: Tue, 28 Mar 2023 07:47:44 +0000 (+0200) Subject: [mlir] Apply ClangTidy readability fix (NFC) X-Git-Tag: upstream/17.0.6~13465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdeaeeeb6430c413201f425b66e8d0f64a18bc94;p=platform%2Fupstream%2Fllvm.git [mlir] Apply ClangTidy readability fix (NFC) --- diff --git a/mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp b/mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp index 3341f8a..2e32092 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp @@ -50,7 +50,7 @@ static Value createMul(Location loc, Value x, Value y, Type accType, // Delinearizes the given composite `index` by the basis specified in `factors`. static SmallVector unrollIndex(OpBuilder &b, Location loc, Value index, ArrayRef factors) { - assert(factors.size() >= 1 && "empty factor list"); + assert(!factors.empty() && "empty factor list"); SmallVector basis; for (int64_t f : factors) basis.push_back(b.create(loc, b.getIndexAttr(f)));