diff options
author | Adrian Kuegel <akuegel@google.com> | 2024-06-20 06:09:14 +0000 |
---|---|---|
committer | Adrian Kuegel <akuegel@google.com> | 2024-06-20 06:10:07 +0000 |
commit | 799e3c9e1713c3a52e45f071786a9748c4308c01 (patch) | |
tree | 6c4712c1cf307d9046158d75eb76876729428bfe /mlir | |
parent | c2f976649a5ef405b224bfe36267966cdd394057 (diff) | |
download | llvm-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.cpp | 2 |
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; |