Assign vector expressions to a temp for return

Rather than direct to .return, allowing return of vector expressions
with function calls without trashing the vector.
This commit is contained in:
Bill Currie 2019-06-08 13:36:03 +09:00
parent ebab6574b9
commit e217bdd55f

View file

@ -2005,7 +2005,7 @@ return_expr (function_t *f, expr_t *e)
}
}
if (e->type == ex_vector) {
e = assign_expr (new_ret_expr (t), e);
e = assign_expr (new_temp_def_expr (t), e);
}
return new_unary_expr ('r', e);
}