]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Enter the outgoing block after a switch
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 21:08:38 +0000 (22:08 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 21:08:38 +0000 (22:08 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 4da45eafbcdafdcf97d9bd13cdd94750451282b6..c503c65d617c26121967a140af093fb97962ac0b 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -2389,6 +2389,8 @@ bool ast_switch_codegen(ast_switch *self, ast_function *func, bool lvalue, ir_va
     /* Jump from the last bnot to bout */
     if (!func->curblock->final && !ir_block_create_jump(func->curblock, bout))
         return false;
+    /* enter the outgoing block */
+    func->curblock = bout;
 
     /* restore the break block */
     func->breakblock = old_break;