aboutsummaryrefslogtreecommitdiff
path: root/mlir
diff options
context:
space:
mode:
authorAdrian Kuegel <akuegel@google.com>2024-06-20 06:09:14 +0000
committerAdrian Kuegel <akuegel@google.com>2024-06-20 06:10:07 +0000
commit799e3c9e1713c3a52e45f071786a9748c4308c01 (patch)
tree6c4712c1cf307d9046158d75eb76876729428bfe /mlir
parentc2f976649a5ef405b224bfe36267966cdd394057 (diff)
downloadllvm-799e3c9e1713c3a52e45f071786a9748c4308c01.zip
llvm-799e3c9e1713c3a52e45f071786a9748c4308c01.tar.gz
llvm-799e3c9e1713c3a52e45f071786a9748c4308c01.tar.bz2
[mlir] Apply ClangTidy finding.
Diffstat (limited to 'mlir')
-rw-r--r--mlir/lib/Pass/IRPrinting.cpp2
1 files changed, 1 insertions, 1 deletions
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;