diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-06-22 11:45:54 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-06-22 09:45:54 +0000 |
commit | ebbb116851bd0b43e6c86cd719b7a70684991d66 (patch) | |
tree | fd03bb639d4e4e0451fef2b3977574cd3d0a55da /gcc/tree.c | |
parent | e08bf12576ebab5ab1f0f368b03f86fc2cd463c0 (diff) | |
download | gcc-ebbb116851bd0b43e6c86cd719b7a70684991d66.zip gcc-ebbb116851bd0b43e6c86cd719b7a70684991d66.tar.gz gcc-ebbb116851bd0b43e6c86cd719b7a70684991d66.tar.bz2 |
* tree.c (free_lang_data_in_type): Free all TYPE_VFIELDs.
From-SVN: r261883
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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)) { |