From 12d94850cd183cadf37f1f278e5795e84a95e894 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Wed, 18 Sep 2024 21:19:28 -0700 Subject: [PATCH] [ctx_prof] Avoid `llvm::append_range` to fix some build bots Example: https://lab.llvm.org/buildbot/#/builders/169/builds/3381 The CI allowed the `llvm::append_range` instantiation, but on the other hand it's quite unnecessary here. --- llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp b/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp index 91f950e2ba4c3e..4bb505a4a4f03e 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp @@ -246,7 +246,7 @@ class ProfileAnnotator final { continue; } if (succ_size(BB) == 1) { - llvm::append_range(Worklist, successors(BB)); + Worklist.push_back(BB->getUniqueSuccessor()); continue; } const auto &BBInfo = getBBInfo(*BB);