Commit cba389cd by Richard Stallman

(expand_return): When expanding assignment into DECL_RESULT,

ignore the "value"--do it for effect.

From-SVN: r4937
parent d9a98e1a
......@@ -2428,7 +2428,7 @@ expand_return (retval)
{
/* No cleanups or no hard reg used;
calculate value into hard return reg. */
expand_expr (retval, NULL_RTX, VOIDmode, 0);
expand_expr (retval, const0_rtx, VOIDmode, 0);
emit_queue ();
free_temp_slots ();
expand_value_return (DECL_RTL (DECL_RESULT (current_function_decl)));
......
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