]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
copy the function context over to its ir_value as well
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 17:49:12 +0000 (19:49 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 17:49:12 +0000 (19:49 +0200)
ast.c

diff --git a/ast.c b/ast.c
index cfcef8847918554cdc4db6911cdab364b6fbd57d..51615712592071510753b7337b69562305dff3f9 100644 (file)
--- 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;