Commit a9e6be8e by Mark Mitchell Committed by Mark Mitchell

search.c (expand_upcast_fixups): Tweak to match 1998-10-07 change to vtable types.

	* search.c (expand_upcast_fixups): Tweak to match 1998-10-07
	change to vtable types.

From-SVN: r22959
parent 953360c8
1998-10-09 Mark Mitchell <mark@markmitchell.com> 1998-10-09 Mark Mitchell <mark@markmitchell.com>
* search.c (expand_upcast_fixups): Tweak to match 1998-10-07
change to vtable types.
* cvt.c (ocp_convert): Avoid infinite recursion caused by * cvt.c (ocp_convert): Avoid infinite recursion caused by
1998-10-03 change. 1998-10-03 change.
......
...@@ -2557,8 +2557,7 @@ expand_upcast_fixups (binfo, addr, orig_addr, vbase, vbase_addr, t, ...@@ -2557,8 +2557,7 @@ expand_upcast_fixups (binfo, addr, orig_addr, vbase, vbase_addr, t,
(build_indirect_ref (addr, NULL_PTR), (build_indirect_ref (addr, NULL_PTR),
DECL_CONTEXT (CLASSTYPE_VFIELD (BINFO_TYPE (binfo)))); DECL_CONTEXT (CLASSTYPE_VFIELD (BINFO_TYPE (binfo))));
expand_expr_stmt expand_expr_stmt
(build_modify_expr (ref, NOP_EXPR, (build_modify_expr (ref, NOP_EXPR, nvtbl));
build_unary_op (ADDR_EXPR, nvtbl, 0)));
} }
assemble_external (vtbl); assemble_external (vtbl);
aref = build_array_ref (vtbl, idx); aref = build_array_ref (vtbl, idx);
......
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