From fa51a33df192b192f733aa2d6d0e83935f62409e Mon Sep 17 00:00:00 2001 From: Vasileios Porpodas Date: Mon, 9 Sep 2024 16:49:51 -0700 Subject: [PATCH] fixup! [SandboxIR] PassManager --- llvm/include/llvm/SandboxIR/PassManager.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llvm/include/llvm/SandboxIR/PassManager.h b/llvm/include/llvm/SandboxIR/PassManager.h index eba72a310aa072e..8d7d31668658006 100644 --- a/llvm/include/llvm/SandboxIR/PassManager.h +++ b/llvm/include/llvm/SandboxIR/PassManager.h @@ -48,11 +48,7 @@ class PassManager : public ParentPass { void print(raw_ostream &OS) const override { OS << this->getName(); OS << "("; - for (auto [Idx, Pass] : enumerate(Passes)) { - OS << Pass->getName(); - if (Idx + 1 != Passes.size()) - OS << ","; - } + interleave(Passes, OS, [&OS](auto *Pass) { OS << Pass->getName(); }, ","); OS << ")"; } LLVM_DUMP_METHOD void dump() const override {