From: Wolfgang (Blub) Bumiller Date: Fri, 24 Aug 2012 17:49:12 +0000 (+0200) Subject: copy the function context over to its ir_value as well X-Git-Tag: 0.1-rc1~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1fc8c2f697bb7492949eb0e1ba6703390215778d;p=xonotic%2Fgmqcc.git copy the function context over to its ir_value as well --- diff --git a/ast.c b/ast.c index cfcef88..5161571 100644 --- a/ast.c +++ b/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;