From 799e3c9e1713c3a52e45f071786a9748c4308c01 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Thu, 20 Jun 2024 06:09:14 +0000 Subject: [mlir] Apply ClangTidy finding. --- mlir/lib/Pass/IRPrinting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Pass/IRPrinting.cpp b/mlir/lib/Pass/IRPrinting.cpp index a12bdd9..9ffda64 100644 --- a/mlir/lib/Pass/IRPrinting.cpp +++ b/mlir/lib/Pass/IRPrinting.cpp @@ -271,7 +271,7 @@ createTreePrinterOutputPath(Operation *op, llvm::StringRef passArgument, if (failed(createDirectoryOrPrintErr(path))) return nullptr; - for (auto [opName, symbolName] : opAndSymbolNames) { + for (const auto &[opName, symbolName] : opAndSymbolNames) { llvm::sys::path::append(path, opName + "_" + symbolName); if (failed(createDirectoryOrPrintErr(path))) return nullptr; -- cgit v1.1