* objc-act.c (objc_xref_basetypes): Set TYPE_BINFO of type variants,
too.
From-SVN: r212112
+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.
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));