aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-01-02 16:05:17 +0100
committerJan Hubicka <jh@suse.cz>2021-01-02 16:05:17 +0100
commitae99b315ba5b9e1ccc221b3c45de323cbc574400 (patch)
tree9e4312eb14ce92e822df7da72a6fd57644f7dbb8 /gcc
parentc304a68e41f2a529b635106a384ecbf225f9abd2 (diff)
downloadgcc-ae99b315ba5b9e1ccc221b3c45de323cbc574400.zip
gcc-ae99b315ba5b9e1ccc221b3c45de323cbc574400.tar.gz
gcc-ae99b315ba5b9e1ccc221b3c45de323cbc574400.tar.bz2
ggc_free basic blocks
* cfg.c (free_block): ggc_free bb.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cfg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 529b6ed..e8bd145 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. */