[Mlir-commits] [mlir] b06e0a2 - [NFC][MLIR][AsmPrinter] Use interleaveComma instead of interleave (#163197)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 13 07:34:25 PDT 2025
Author: Rahul Joshi
Date: 2025-10-13T07:34:21-07:00
New Revision: b06e0a2f904fc7b76d995e14bd15475ec3d747d5
URL: https://github.com/llvm/llvm-project/commit/b06e0a2f904fc7b76d995e14bd15475ec3d747d5
DIFF: https://github.com/llvm/llvm-project/commit/b06e0a2f904fc7b76d995e14bd15475ec3d747d5.diff
LOG: [NFC][MLIR][AsmPrinter] Use interleaveComma instead of interleave (#163197)
Added:
Modified:
mlir/lib/IR/AsmPrinter.cpp
Removed:
################################################################################
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) {
More information about the Mlir-commits
mailing list