2018-10-26 Jan Hubicka <jh@suse.cz>
+ * tree.c (free_lang_data_in_type): Only check main variants.
* ipa-devirt.c (warn_odr): Make static.
(types_same_for_odr): Drop strict variant.
(types_odr_comparable): Likewise.
/* 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;