Commit b322cdb2 by Jan Hubicka Committed by Jan Hubicka

* tree.c (free_lang_data_in_type): Only check main variants.

From-SVN: r265520
parent 420672bc
2018-10-26 Jan Hubicka <jh@suse.cz> 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. * ipa-devirt.c (warn_odr): Make static.
(types_same_for_odr): Drop strict variant. (types_same_for_odr): Drop strict variant.
(types_odr_comparable): Likewise. (types_odr_comparable): Likewise.
...@@ -5174,7 +5174,7 @@ free_lang_data_in_type (tree type) ...@@ -5174,7 +5174,7 @@ free_lang_data_in_type (tree type)
/* Drop TYPE_DECLs in TYPE_NAME in favor of the identifier in the /* Drop TYPE_DECLs in TYPE_NAME in favor of the identifier in the
TYPE_DECL if the type doesn't have linkage. */ 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_NAME (type) = TYPE_IDENTIFIER (type);
TYPE_STUB_DECL (type) = NULL; TYPE_STUB_DECL (type) = NULL;
......
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