[Mlir-commits] [mlir] 5cf35f1 - [MLIR] Apply clang-tidy fixes for performance-for-range-copy in OpenMPDialect.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Sep 10 14:52:35 PDT 2025


Author: Mehdi Amini
Date: 2025-09-10T14:49:52-07:00
New Revision: 5cf35f177230696d5f3b932556b4edb4d2c08df7

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

LOG: [MLIR] Apply clang-tidy fixes for performance-for-range-copy in OpenMPDialect.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index aa88b9e8eef5a..3d70e28ed23ab 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3196,7 +3196,7 @@ void NewCliOp::getAsmResultNames(OpAsmSetValueNameFn setNameFn) {
               }
 
               SmallString<64> Name("canonloop");
-              for (std::string s : reverse(components)) {
+              for (const std::string &s : reverse(components)) {
                 Name += '_';
                 Name += s;
               }


        


More information about the Mlir-commits mailing list