[Mlir-commits] [mlir] a40a610 - [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in Pass.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Aug 27 02:26:21 PDT 2025


Author: Mehdi Amini
Date: 2025-08-27T02:25:02-07:00
New Revision: a40a610704ff143ef7579134347a80521cb0ab5e

URL: https://github.com/llvm/llvm-project/commit/a40a610704ff143ef7579134347a80521cb0ab5e
DIFF: https://github.com/llvm/llvm-project/commit/a40a610704ff143ef7579134347a80521cb0ab5e.diff

LOG: [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in Pass.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Bindings/Python/Pass.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bindings/Python/Pass.cpp b/mlir/lib/Bindings/Python/Pass.cpp
index 20017e25b69bb..1030dea7f364c 100644
--- a/mlir/lib/Bindings/Python/Pass.cpp
+++ b/mlir/lib/Bindings/Python/Pass.cpp
@@ -39,7 +39,7 @@ class PyPassManager {
     return nb::steal<nb::object>(mlirPythonPassManagerToCapsule(get()));
   }
 
-  static nb::object createFromCapsule(nb::object capsule) {
+  static nb::object createFromCapsule(const nb::object &capsule) {
     MlirPassManager rawPm = mlirPythonCapsuleToPassManager(capsule.ptr());
     if (mlirPassManagerIsNull(rawPm))
       throw nb::python_error();


        


More information about the Mlir-commits mailing list