]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
more context copies
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 18:43:34 +0000 (20:43 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 18:43:34 +0000 (20:43 +0200)
ast.c

diff --git a/ast.c b/ast.c
index f2d055dcd7f4aa16e0e44d528f916b413d9b54bd..50b6e872dd540342c94037460174b3e74546db3d 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -854,6 +854,7 @@ bool ast_local_codegen(ast_value *self, ir_function *func, bool param)
     v = ir_function_create_local(func, self->name, self->expression.vtype, param);
     if (!v)
         return false;
+    v->context = ast_ctx(self);
 
     /* A constant local... hmmm...
      * I suppose the IR will have to deal with this