Commit ebbb1168 by Jan Hubicka Committed by Jan Hubicka

* tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs.

From-SVN: r261883
parent e08bf125
2018-06-22 Jan Hubicka <hubicka@ucw.cz>
* tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs.
2018-06-22 Martin Liska <mliska@suse.cz>
* symbol-summary.h (get): Make it pure and inline move
......
......@@ -5134,10 +5134,7 @@ free_lang_data_in_type (tree type)
else
*prev = DECL_CHAIN (member);
/* FIXME: C FE uses TYPE_VFIELD to record C_TYPE_INCOMPLETE_VARS
and danagle the pointer from time to time. */
if (TYPE_VFIELD (type) && TREE_CODE (TYPE_VFIELD (type)) != FIELD_DECL)
TYPE_VFIELD (type) = NULL_TREE;
TYPE_VFIELD (type) = NULL_TREE;
if (TYPE_BINFO (type))
{
......
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