[NFC][MLIR][AsmPrinter] Use interleaveComma instead of interleave (#163197)

This commit is contained in:
Rahul Joshi 2025-10-13 07:34:21 -07:00 committed by GitHub
parent 55ed34cb15
commit b06e0a2f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2200,10 +2200,9 @@ void AsmPrinter::Impl::printLocationInternal(LocationAttr loc, bool pretty,
os << '>';
}
os << '[';
interleave(
loc.getLocations(),
[&](Location loc) { printLocationInternal(loc, pretty); },
[&]() { os << ", "; });
interleaveComma(loc.getLocations(), [&](Location loc) {
printLocationInternal(loc, pretty);
});
os << ']';
})
.Default([&](LocationAttr loc) {