]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Do not actually return after generating a call, there are other isntructions following
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Wed, 4 Jul 2012 13:16:02 +0000 (15:16 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Wed, 4 Jul 2012 13:16:02 +0000 (15:16 +0200)
ast.c
ir.c

diff --git a/ast.c b/ast.c
index d22e23919fcf0b85e0a146116c5cb889e534fe1f..e50f1680aead5d6c66e90f21980c3c0650cceb0e 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -640,7 +640,9 @@ bool ast_function_codegen(ast_function *self, ir_builder *ir)
     {
         if (!self->vtype->expression.next ||
             self->vtype->expression.next->expression.vtype == TYPE_VOID)
+        {
             return ir_block_create_return(self->curblock, NULL);
+        }
         else
         {
             /* error("missing return"); */
diff --git a/ir.c b/ir.c
index 41e90d152439c47321c69cbdcfdf773929987c77..e8b7382912775c341acc8cbf9a50981c05aec8e5 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2263,7 +2263,7 @@ tailcall:
                 if (code_statements_add(stmt) < 0)
                     return false;
             }
-            return true;
+            continue;
         }
 
         if (instr->opcode == INSTR_STATE) {