Commit 049d2def by Jason Merrill

tidy

From-SVN: r43440
parent 3b40a214
...@@ -7658,11 +7658,10 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l) ...@@ -7658,11 +7658,10 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l)
1) We are in the same place. 1) We are in the same place.
2) We are a primary base within a lost primary virtual base of 2) We are a primary base within a lost primary virtual base of
RTTI_BINFO. RTTI_BINFO.
3) We are not primary to anything else in RTTI_BINFO. */ 3) We are primary to something not a base of RTTI_BINFO. */
tree b = BINFO_PRIMARY_BASE_OF (binfo); tree b = BINFO_PRIMARY_BASE_OF (binfo);
tree last = NULL_TREE; tree last = NULL_TREE;
tree primary = NULL_TREE;
/* First, look through the bases we are primary to for RTTI_BINFO /* First, look through the bases we are primary to for RTTI_BINFO
or a virtual base. */ or a virtual base. */
...@@ -7686,14 +7685,12 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l) ...@@ -7686,14 +7685,12 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l)
if (b == rtti_binfo if (b == rtti_binfo
|| (b && binfo_for_vbase (BINFO_TYPE (b), || (b && binfo_for_vbase (BINFO_TYPE (b),
BINFO_TYPE (rtti_binfo)))) BINFO_TYPE (rtti_binfo))))
primary = last; /* Just set our BINFO_VTABLE to point to LAST, as we may not have
/* Otherwise, this is case 3 and we get our own. */ set LAST's BINFO_VTABLE yet. We'll extract the actual vptr in
binfo_ctor_vtable after everything's been set up. */
vtbl = last;
if (primary) /* Otherwise, this is case 3 and we get our own. */
/* We're the primary of some binfo that we may not have
met in the inheritance graph walk of RTTI_BINFO. Just
point to it. */
vtbl = primary;
} }
else if (!BINFO_NEW_VTABLE_MARKED (orig_binfo, BINFO_TYPE (rtti_binfo))) else if (!BINFO_NEW_VTABLE_MARKED (orig_binfo, BINFO_TYPE (rtti_binfo)))
return inits; return inits;
......
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