From cadf877eb4359b59a84b99e7a693d1fc2ce708f1 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 19 Aug 2012 19:37:46 +0200 Subject: [PATCH] provide the context to ir_functions --- ast.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2