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.
This commit is contained in:
Richard Biener
2026-03-18 08:04:27 +01:00
committed by Richard Biener
parent 1a5d977667
commit 029f335b70

View File

@@ -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;
}