diff options
author | Jan Hubicka <jh@suse.cz> | 2021-01-02 16:05:17 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2021-01-02 16:05:17 +0100 |
commit | ae99b315ba5b9e1ccc221b3c45de323cbc574400 (patch) | |
tree | 9e4312eb14ce92e822df7da72a6fd57644f7dbb8 /gcc | |
parent | c304a68e41f2a529b635106a384ecbf225f9abd2 (diff) | |
download | gcc-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. */ |