* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
From-SVN: r207619
This commit is contained in:
parent
8c311b50d1
commit
b7e85694cf
|
@ -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
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue