From: Wolfgang (Blub) Bumiller Date: Sun, 19 Aug 2012 17:37:46 +0000 (+0200) Subject: provide the context to ir_functions X-Git-Tag: 0.1-rc1~153 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cadf877eb4359b59a84b99e7a693d1fc2ce708f1;p=xonotic%2Fgmqcc.git provide the context to ir_functions --- diff --git a/ast.c b/ast.c index 8bbce8f..1570388 100644 --- a/ast.c +++ b/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;