Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 1f004c5

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in Pass.cpp (NFC)
1 parent 4cedc71 commit 1f004c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Bindings/Python/Pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class PyPassManager {
3939
return nb::steal<nb::object>(mlirPythonPassManagerToCapsule(get()));
4040
}
4141

42-
static nb::object createFromCapsule(nb::object capsule) {
42+
static nb::object createFromCapsule(const nb::object &capsule) {
4343
MlirPassManager rawPm = mlirPythonCapsuleToPassManager(capsule.ptr());
4444
if (mlirPassManagerIsNull(rawPm))
4545
throw nb::python_error();

0 commit comments

Comments
 (0)