]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
remember this for later
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 5 Dec 2012 14:14:21 +0000 (15:14 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 5 Dec 2012 14:14:21 +0000 (15:14 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 789e67ba1ac35716f5af2f4e937af90dd86fd178..890ea0ff8c10c1cf93a58b67ceb9a1f4c41c4b68 100644 (file)
--- 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;