aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2018-10-26 09:21:04 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2018-10-26 07:21:04 +0000
commitb322cdb21a83d2e7ef89058ee56e5a814f916617 (patch)
treec1511680ea85eb957e27984a1282c9e4f9e91413 /gcc/tree.c
parent420672bc92e560bcebf12bdd1f3423362c93bf2e (diff)
downloadgcc-b322cdb21a83d2e7ef89058ee56e5a814f916617.zip
gcc-b322cdb21a83d2e7ef89058ee56e5a814f916617.tar.gz
gcc-b322cdb21a83d2e7ef89058ee56e5a814f916617.tar.bz2
* tree.c (free_lang_data_in_type): Only check main variants.
From-SVN: r265520
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index f87bc37..593ef1a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5174,7 +5174,7 @@ free_lang_data_in_type (tree type)
/* Drop TYPE_DECLs in TYPE_NAME in favor of the identifier in the
TYPE_DECL if the type doesn't have linkage. */
- if (! type_with_linkage_p (type))
+ if (type != TYPE_MAIN_VARIANT (type) || ! type_with_linkage_p (type))
{
TYPE_NAME (type) = TYPE_IDENTIFIER (type);
TYPE_STUB_DECL (type) = NULL;