* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.

From-SVN: r207619
This commit is contained in:
Jan Hubicka 2014-02-08 00:47:17 +01:00 committed by Jan Hubicka
parent 8c311b50d1
commit b7e85694cf
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-02-06 Jan Hubicka <hubicka@ucw.cz>
* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
2014-02-06 Jan Hubicka <hubicka@ucw.cz>
PR ipa/59469

View File

@ -1807,8 +1807,12 @@ unify_scc (struct streamer_tree_cache_d *cache, unsigned from,
/* Free the tree nodes from the read SCC. */
for (unsigned i = 0; i < len; ++i)
{
enum tree_code code;
if (TYPE_P (scc->entries[i]))
num_merged_types++;
code = TREE_CODE (scc->entries[i]);
if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))
vec_free (CONSTRUCTOR_ELTS (scc->entries[i]));
ggc_free (scc->entries[i]);
}