From ebbb116851bd0b43e6c86cd719b7a70684991d66 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 22 Jun 2018 11:45:54 +0200 Subject: [PATCH] * tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs. From-SVN: r261883 --- gcc/ChangeLog | 4 ++++ gcc/tree.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 242c27d..89b8f92 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-06-22 Jan Hubicka + + * tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs. + 2018-06-22 Martin Liska * symbol-summary.h (get): Make it pure and inline move diff --git a/gcc/tree.c b/gcc/tree.c index 608ca7e..1cb5176 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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)) { -- 2.7.4