]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
Ignore generating a return instruction in accumulated functions, eventually we'll...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index cb4ad064979ad824b70ec33dde0df709819529c7..21a29ead5cf193a45616635a08f6aa7df7352c09 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1879,6 +1879,8 @@ bool ast_function_codegen(ast_function *self, ir_builder *ir)
         for (i = 0; i < vec_size(ec->params); i++)
             vec_push(call->params, (ast_expression*)ec->params[i]);
         vec_push(vec_last(self->blocks)->exprs, (ast_expression*)call);
+
+        self->ir_func->flags |= IR_FLAG_ACCUMULATE;
     }
 
     for (i = 0; i < vec_size(self->blocks); ++i) {