From 327f206085f6c37e4e11f8d404bd2284d19933fc Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 2 Oct 2025 09:46:32 -0700 Subject: [PATCH] [NFC][MLIR][AsmPrinter] Use interleaveComma instead of interleave --- mlir/lib/IR/AsmPrinter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp index 3d19c5ad8fbca..9b23dd6e4f283 100644 --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -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) {