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

Mehdi Amini llvmlistbot at llvm.org
Wed Oct 1 04:50:58 PDT 2025


Author: Mehdi Amini
Date: 2025-10-01T04:50:14-07:00
New Revision: 0d0cc06afe07f288ae18cf26e8a66bcb204146cd

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

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bindings/Python/Rewrite.cpp b/mlir/lib/Bindings/Python/Rewrite.cpp
index f18298ecaf415..836f44fd7d4be 100644
--- a/mlir/lib/Bindings/Python/Rewrite.cpp
+++ b/mlir/lib/Bindings/Python/Rewrite.cpp
@@ -127,7 +127,7 @@ class PyFrozenRewritePatternSet {
         mlirPythonFrozenRewritePatternSetToCapsule(get()));
   }
 
-  static nb::object createFromCapsule(nb::object capsule) {
+  static nb::object createFromCapsule(const nb::object &capsule) {
     MlirFrozenRewritePatternSet rawPm =
         mlirPythonCapsuleToFrozenRewritePatternSet(capsule.ptr());
     if (rawPm.ptr == nullptr)


        


More information about the Mlir-commits mailing list