From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 22:50:42 +0000 (+0100) Subject: endlessloops don't have any other block which could be a continue-target-block, so... X-Git-Tag: 0.1.9~212 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0564e701c083aca113c77b7aa1ec716f4db82f00;p=xonotic%2Fgmqcc.git endlessloops don't have any other block which could be a continue-target-block, so use the body itself to not continue to NULL --- diff --git a/ast.c b/ast.c index ba98f51..bd67638 100644 --- a/ast.c +++ b/ast.c @@ -2401,6 +2401,8 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value old_bcontinue = func->continueblock; func->breakblock = bbreak; func->continueblock = bcontinue; + if (!func->continueblock) + func->continueblock = bbody; /* generate */ cgen = self->body->expression.codegen;