Store the codeaddr of function's ir_values upon generation...

This commit is contained in:
Wolfgang Bumiller 2012-07-04 15:05:09 +02:00
parent 88f2238699
commit 904196e9bb

1
ir.c
View file

@ -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: