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

Mehdi Amini llvmlistbot at llvm.org
Tue Aug 26 15:07:29 PDT 2025


Author: Mehdi Amini
Date: 2025-08-26T15:06:31-07:00
New Revision: 79554783e60e86e21c41b67f436f179f0fd134d0

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

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bindings/Python/IRTypes.cpp b/mlir/lib/Bindings/Python/IRTypes.cpp
index b11e3f75b8463..a9b12590188f8 100644
--- a/mlir/lib/Bindings/Python/IRTypes.cpp
+++ b/mlir/lib/Bindings/Python/IRTypes.cpp
@@ -963,7 +963,7 @@ class PyOpaqueType : public PyConcreteType<PyOpaqueType> {
   static void bindDerived(ClassTy &c) {
     c.def_static(
         "get",
-        [](std::string dialectNamespace, std::string typeData,
+        [](const std::string &dialectNamespace, const std::string &typeData,
            DefaultingPyMlirContext context) {
           MlirType type = mlirOpaqueTypeGet(context->get(),
                                             toMlirStringRef(dialectNamespace),


        


More information about the Mlir-commits mailing list