mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 03:01:30 +00:00
provide the context to ir_functions
This commit is contained in:
parent
481baeeedc
commit
cadf877eb4
1 changed files with 1 additions and 0 deletions
1
ast.c
1
ast.c
|
@ -776,6 +776,7 @@ bool ast_global_codegen(ast_value *self, ir_builder *ir)
|
|||
ir_function *func = ir_builder_create_function(ir, self->name, self->expression.next->expression.vtype);
|
||||
if (!func)
|
||||
return false;
|
||||
func->context = ast_ctx(self);
|
||||
|
||||
self->constval.vfunc->ir_func = func;
|
||||
self->ir_v = func->value;
|
||||
|
|
Loading…
Reference in a new issue