From: Wolfgang (Blub) Bumiller Date: Mon, 19 Nov 2012 21:08:38 +0000 (+0100) Subject: Enter the outgoing block after a switch X-Git-Tag: 0.1.9~392 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=986d58877fb9bbf0865ca9406443fb3fd442ea2b;p=xonotic%2Fgmqcc.git Enter the outgoing block after a switch --- diff --git a/ast.c b/ast.c index 4da45ea..c503c65 100644 --- 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;