[llvm] [llvm] Use llvm::interleaved (NFC) (PR #137496)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 27 12:55:09 PDT 2025


================
@@ -349,11 +350,9 @@ void SCEV::print(raw_ostream &OS) const {
     default:
       llvm_unreachable("There are no other nary expression types.");
     }
-    OS << "(";
-    ListSeparator LS(OpStr);
-    for (const SCEV *Op : NAry->operands())
-      OS << LS << *Op;
-    OS << ")";
+    OS << "("
+       << llvm::interleaved(llvm::make_pointee_range(NAry->operands()), OpStr)
----------------
fhahn wrote:

no need to use `llvm::`?

https://github.com/llvm/llvm-project/pull/137496


More information about the llvm-commits mailing list