Skip to content

Commit 5cf35f1

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-for-range-copy in OpenMPDialect.cpp (NFC)
1 parent 89508c3 commit 5cf35f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3196,7 +3196,7 @@ void NewCliOp::getAsmResultNames(OpAsmSetValueNameFn setNameFn) {
31963196
}
31973197

31983198
SmallString<64> Name("canonloop");
3199-
for (std::string s : reverse(components)) {
3199+
for (const std::string &s : reverse(components)) {
32003200
Name += '_';
32013201
Name += s;
32023202
}

0 commit comments

Comments
 (0)