[llvm] [BOLT] Fix runOnEachFunctionWithUniqueAllocId (PR #90039)

Kristof Beyls via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 03:09:56 PDT 2024


================
@@ -164,6 +164,15 @@ void runOnEachFunction(BinaryContext &BC, SchedulingPolicy SchedPolicy,
   Pool.wait();
 }
 
+static void EnsureAllocatorExists(BinaryContext &BC, unsigned AllocId) {
----------------
kbeyls wrote:

Ah, yes, it's better as a closure.
I've now moved it to a closure, see the latest commit.

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


More information about the llvm-commits mailing list