]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Store the codeaddr of function's ir_values upon generation...
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Wed, 4 Jul 2012 13:05:09 +0000 (15:05 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Wed, 4 Jul 2012 13:05:09 +0000 (15:05 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 73e41d1e5730bf170e797f7f62fad06942604c97..41e90d152439c47321c69cbdcfdf773929987c77 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2472,6 +2472,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
     case TYPE_FUNCTION:
         if (code_defs_add(def) < 0)
             return false;
+        global->code.globaladdr = code_globals_elements;
         code_globals_add(code_functions_elements);
         return gen_global_function(self, global);
     case TYPE_VARIANT: