]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
functions which have no living values but store_return values may cause the allocator...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 17:54:15 +0000 (19:54 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 17:54:15 +0000 (19:54 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 158e207f7c5936fb4d5596f2f55b05fecb762991..0a6a8dae555691091c7c202a13368fc7e46602e1 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -1894,6 +1894,10 @@ bool ir_function_allocate_locals(ir_function *self)
         }
     }
 
+    if (!alloc.sizes) {
+        goto cleanup;
+    }
+
     /* Adjust slot positions based on sizes */
     if (!function_allocator_positions_add(&alloc, 0))
         goto error;