From 8acfd8703900afe30a7218837ac2456730b37b34 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 5 Dec 2012 15:14:21 +0100 Subject: [PATCH] remember this for later --- ir.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.39.2