mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
remember this for later
This commit is contained in:
parent
5f0f5bedbc
commit
8acfd87039
1 changed files with 9 additions and 0 deletions
9
ir.c
9
ir.c
|
@ -2205,6 +2205,15 @@ bool ir_function_allocate_locals(ir_function *self)
|
|||
{
|
||||
slot = alloc.locals[a];
|
||||
|
||||
/* never resize parameters
|
||||
* will be required later when overlapping temps + locals
|
||||
*/
|
||||
if (a < vec_size(self->params) &&
|
||||
alloc.sizes[a] < type_sizeof[v->vtype])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ir_values_overlap(v, slot))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue