mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
copy the function context over to its ir_value as well
This commit is contained in:
parent
74cb075665
commit
1fc8c2f697
1 changed files with 1 additions and 0 deletions
1
ast.c
1
ast.c
|
@ -774,6 +774,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir)
|
|||
if (!func)
|
||||
return false;
|
||||
func->context = ast_ctx(self);
|
||||
func->value->context = ast_ctx(self);
|
||||
|
||||
self->constval.vfunc->ir_func = func;
|
||||
self->ir_v = func->value;
|
||||
|
|
Loading…
Reference in a new issue