From: Wolfgang (Blub) Bumiller Date: Fri, 4 May 2012 10:01:53 +0000 (+0200) Subject: ast_loop must end by entering the outgoing block X-Git-Tag: 0.1-rc1~489^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c670a8d27831b6496be569fabe6e58d0ac2460f7;p=xonotic%2Fgmqcc.git ast_loop must end by entering the outgoing block --- diff --git a/ast.c b/ast.c index e796215..ce89fc9 100644 --- a/ast.c +++ b/ast.c @@ -1076,6 +1076,9 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value end_bincrement = func->curblock; } + /* In any case now, we continue from the outgoing block */ + func->curblock = bout; + /* Now all blocks are in place */ /* From 'bin' we jump to whatever comes first */ if (bprecond && !ir_block_create_jump(bin, bprecond))