From: Jan Hubicka Date: Sat, 2 Jan 2021 15:05:17 +0000 (+0100) Subject: ggc_free basic blocks X-Git-Tag: basepoints/gcc-12~1846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae99b315ba5b9e1ccc221b3c45de323cbc574400;p=thirdparty%2Fgcc.git ggc_free basic blocks * cfg.c (free_block): ggc_free bb. --- diff --git a/gcc/cfg.c b/gcc/cfg.c index 529b6ed2105a..e8bd1456c9f3 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -102,8 +102,7 @@ free_block (basic_block bb) bb->succs = NULL; vec_free (bb->preds); bb->preds = NULL; - /* Do not free BB itself yet since we leak pointers to dead statements - that points to dead basic blocks. */ + ggc_free (bb); } /* Free the memory associated with the CFG in FN. */