Skip to content

Commit 63f2bf4

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in DialectSparseTensor.cpp (NFC)
1 parent 217968f commit 63f2bf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Bindings/Python/DialectSparseTensor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ static void populateDialectSparseTensorSubmodule(const nb::module_ &m) {
3838
mlirAttributeIsASparseTensorEncodingAttr)
3939
.def_classmethod(
4040
"get",
41-
[](nb::object cls, std::vector<MlirSparseTensorLevelType> lvlTypes,
41+
[](const nb::object &cls,
42+
std::vector<MlirSparseTensorLevelType> lvlTypes,
4243
std::optional<MlirAffineMap> dimToLvl,
4344
std::optional<MlirAffineMap> lvlToDim, int posWidth, int crdWidth,
4445
std::optional<MlirAttribute> explicitVal,
@@ -58,7 +59,7 @@ static void populateDialectSparseTensorSubmodule(const nb::module_ &m) {
5859
"Gets a sparse_tensor.encoding from parameters.")
5960
.def_classmethod(
6061
"build_level_type",
61-
[](nb::object cls, MlirSparseTensorLevelFormat lvlFmt,
62+
[](const nb::object &cls, MlirSparseTensorLevelFormat lvlFmt,
6263
const std::vector<MlirSparseTensorLevelPropertyNondefault>
6364
&properties,
6465
unsigned n, unsigned m) {

0 commit comments

Comments
 (0)