(expand_call): Check for variable-sized return value in proper place.

From-SVN: r7974
This commit is contained in:
Richard Kenner 1994-08-24 19:16:12 -04:00
parent 7063dcbeb7
commit 002bdd6c05

View File

@ -667,9 +667,6 @@ expand_call (exp, target, ignore)
{
struct_value_size = int_size_in_bytes (TREE_TYPE (exp));
if (struct_value_size < 0)
abort ();
if (target && GET_CODE (target) == MEM)
structure_value_addr = XEXP (target, 0);
else
@ -680,6 +677,9 @@ expand_call (exp, target, ignore)
specified. If we were to allocate space on the stack here,
we would have no way of knowing when to free it. */
if (struct_value_size < 0)
abort ();
structure_value_addr
= XEXP (assign_stack_temp (BLKmode, struct_value_size, 1), 0);
target = 0;