From c670a8d27831b6496be569fabe6e58d0ac2460f7 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 4 May 2012 12:01:53 +0200 Subject: [PATCH] ast_loop must end by entering the outgoing block --- ast.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.2