objc-act.c (objc_xref_basetypes): Set TYPE_BINFO of type variants, too.

* objc-act.c (objc_xref_basetypes): Set TYPE_BINFO of type variants,
	too.

From-SVN: r212112
This commit is contained in:
Jan Hubicka 2014-06-29 01:30:58 +02:00 committed by Jan Hubicka
parent 8910466afb
commit ba429440d1
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-06-24 Jan Hubicka <hubicka@ucw.cz>
* objc-act.c (objc_xref_basetypes): Set TYPE_BINFO of type variants,
too.
2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
* objc-act.c: Adjust.

View File

@ -2695,12 +2695,16 @@ objc_copy_binfo (tree binfo)
static void
objc_xref_basetypes (tree ref, tree basetype)
{
tree variant;
tree binfo = make_tree_binfo (basetype ? 1 : 0);
TYPE_BINFO (ref) = binfo;
BINFO_OFFSET (binfo) = size_zero_node;
BINFO_TYPE (binfo) = ref;
gcc_assert (TYPE_MAIN_VARIANT (ref) == ref);
for (variant = ref; variant; variant = TYPE_NEXT_VARIANT (variant))
TYPE_BINFO (variant) = binfo;
if (basetype)
{
tree base_binfo = objc_copy_binfo (TYPE_BINFO (basetype));