mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 02:10:53 +00:00
Store the codeaddr of function's ir_values upon generation...
This commit is contained in:
parent
88f2238699
commit
904196e9bb
1 changed files with 1 additions and 0 deletions
1
ir.c
1
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:
|
||||
|
|
Loading…
Reference in a new issue