Skip to content

Commit 60caa8e

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in ConvertConv2DToImg2Col.cpp (NFC)
1 parent de5cede commit 60caa8e

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
@@ -26,7 +26,7 @@ namespace mlir {
2626
namespace linalg {
2727
static bool hasAllOneValues(DenseIntElementsAttr attr) {
2828
return llvm::all_of(
29-
attr, [](APInt element) { return element.getSExtValue() == 1; });
29+
attr, [](const APInt &element) { return element.getSExtValue() == 1; });
3030
}
3131

3232
static Value createAdd(Location loc, Value x, Value y, OpBuilder &builder) {

0 commit comments

Comments
 (0)