Commit b7e85694 by Jan Hubicka Committed by Jan Hubicka

* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.

From-SVN: r207619
parent 8c311b50
2014-02-06 Jan Hubicka <hubicka@ucw.cz> 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 PR ipa/59469
* lto-partition.c (symbol_class): Move to cgraph.h * lto-partition.c (symbol_class): Move to cgraph.h
(get_symbol_class): Move to symtab.c (get_symbol_class): Move to symtab.c
......
...@@ -1807,8 +1807,12 @@ unify_scc (struct streamer_tree_cache_d *cache, unsigned from, ...@@ -1807,8 +1807,12 @@ unify_scc (struct streamer_tree_cache_d *cache, unsigned from,
/* Free the tree nodes from the read SCC. */ /* Free the tree nodes from the read SCC. */
for (unsigned i = 0; i < len; ++i) for (unsigned i = 0; i < len; ++i)
{ {
enum tree_code code;
if (TYPE_P (scc->entries[i])) if (TYPE_P (scc->entries[i]))
num_merged_types++; 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]); ggc_free (scc->entries[i]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment