From 029f335b70fdeaf2301f6568b9bfe1d9b38ad41a Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 18 Mar 2026 08:04:27 +0100 Subject: [PATCH] middle-end/124552 - release hierarchical discriminator copyid allocator The following releases it when the CFG is released. PR middle-end/124552 * function.cc (free_after_compilation): Free the copyid allocator. --- gcc/function.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/function.cc b/gcc/function.cc index 9795dc7c1a0..bba05f3380d 100644 --- a/gcc/function.cc +++ b/gcc/function.cc @@ -85,6 +85,7 @@ along with GCC; see the file COPYING3. If not see #include "value-range.h" #include "gimple-range.h" #include "insn-attr.h" +#include "hierarchical_discriminator.h" /* So we can assign to cfun in this file. */ #undef cfun @@ -217,6 +218,7 @@ free_after_compilation (struct function *f) f->cfg = NULL; f->curr_properties &= ~PROP_cfg; delete f->cond_uids; + free_copyid_allocator (f); regno_reg_rtx = NULL; }