mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
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:
parent
ebab6574b9
commit
e217bdd55f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue