Skip to content

Commit ba6856c

Browse files
akuegelAlexisPerry
authored andcommitted
[mlir] Apply ClangTidy finding.
1 parent 220585e commit ba6856c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Pass/IRPrinting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ createTreePrinterOutputPath(Operation *op, llvm::StringRef passArgument,
271271
if (failed(createDirectoryOrPrintErr(path)))
272272
return nullptr;
273273

274-
for (auto [opName, symbolName] : opAndSymbolNames) {
274+
for (const auto &[opName, symbolName] : opAndSymbolNames) {
275275
llvm::sys::path::append(path, opName + "_" + symbolName);
276276
if (failed(createDirectoryOrPrintErr(path)))
277277
return nullptr;

0 commit comments

Comments
 (0)