Skip to content

Commit b06e0a2

Browse files
authored
[NFC][MLIR][AsmPrinter] Use interleaveComma instead of interleave (#163197)
1 parent 55ed34c commit b06e0a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mlir/lib/IR/AsmPrinter.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,10 +2200,9 @@ void AsmPrinter::Impl::printLocationInternal(LocationAttr loc, bool pretty,
22002200
os << '>';
22012201
}
22022202
os << '[';
2203-
interleave(
2204-
loc.getLocations(),
2205-
[&](Location loc) { printLocationInternal(loc, pretty); },
2206-
[&]() { os << ", "; });
2203+
interleaveComma(loc.getLocations(), [&](Location loc) {
2204+
printLocationInternal(loc, pretty);
2205+
});
22072206
os << ']';
22082207
})
22092208
.Default([&](LocationAttr loc) {

0 commit comments

Comments
 (0)