From 1fc8c2f697bb7492949eb0e1ba6703390215778d Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 24 Aug 2012 19:49:12 +0200 Subject: [PATCH] copy the function context over to its ir_value as well --- ast.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2