Skip to content

Commit

Permalink
[mlir] Apply ClangTidy finding.
Browse files Browse the repository at this point in the history
  • Loading branch information
akuegel committed Jun 20, 2024
1 parent c2f9766 commit 799e3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Pass/IRPrinting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 799e3c9

Please sign in to comment.