[Mlir-commits] [mlir] 799e3c9 - [mlir] Apply ClangTidy finding.
Adrian Kuegel
llvmlistbot at llvm.org
Wed Jun 19 23:10:17 PDT 2024
Author: Adrian Kuegel
Date: 2024-06-20T06:10:07Z
New Revision: 799e3c9e1713c3a52e45f071786a9748c4308c01
URL: https://github.com/llvm/llvm-project/commit/799e3c9e1713c3a52e45f071786a9748c4308c01
DIFF: https://github.com/llvm/llvm-project/commit/799e3c9e1713c3a52e45f071786a9748c4308c01.diff
LOG: [mlir] Apply ClangTidy finding.
Added:
Modified:
mlir/lib/Pass/IRPrinting.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Pass/IRPrinting.cpp b/mlir/lib/Pass/IRPrinting.cpp
index a12bdd935a488..9ffda6402cc07 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;
More information about the Mlir-commits
mailing list