From: Wolfgang (Blub) Bumiller Date: Wed, 5 Dec 2012 14:14:21 +0000 (+0100) Subject: remember this for later X-Git-Tag: 0.1.9~110 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8acfd8703900afe30a7218837ac2456730b37b34;p=xonotic%2Fgmqcc.git remember this for later --- diff --git a/ir.c b/ir.c index 789e67b..890ea0f 100644 --- a/ir.c +++ b/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;