Commit 2a66ec2b by Jason Merrill Committed by Jason Merrill

expr.c (cplus_expand_expr, [...]): Call convert_from_reference sooner.

	* expr.c (cplus_expand_expr, PCC_STATIC_STRUCT_RETURN code):
	Call convert_from_reference sooner.

From-SVN: r17659
parent 82bf7783
Wed Feb 4 01:26:49 1998 Jason Merrill <jason@yorick.cygnus.com>
* expr.c (cplus_expand_expr, PCC_STATIC_STRUCT_RETURN code):
Call convert_from_reference sooner.
Tue Feb 3 23:50:52 1998 Mark Mitchell <mmitchell@usa.net>
* cvt.c (ocp_convert): Obtain the constant values from constant
......
......@@ -140,6 +140,7 @@ cplus_expand_expr (exp, target, tmode, modifier)
tree init = build_decl (VAR_DECL, NULL_TREE,
build_reference_type (type));
DECL_RTL (init) = XEXP (return_target, 0);
init = convert_from_reference (init);
flag_access_control = 0;
expand_aggr_init (slot, init, 0, LOOKUP_ONLYCONVERTING);
......@@ -147,7 +148,7 @@ cplus_expand_expr (exp, target, tmode, modifier)
if (TYPE_NEEDS_DESTRUCTOR (type))
{
init = maybe_build_cleanup (convert_from_reference (init));
init = maybe_build_cleanup (init);
if (init != NULL_TREE)
expand_expr (init, const0_rtx, VOIDmode, 0);
}
......
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