X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=ast.c;h=87d34cedc84d83badf820f32ac492916138e8e56;hb=adc9e7bf221fb8de6be6f022f6ca98c4b65ed75f;hp=584bda0714a5f923524ff828c66eaa6919ac9c84;hpb=063c50fce450693f0098cbc4a28efd109cbed01b;p=xonotic%2Fgmqcc.git diff --git a/ast.c b/ast.c index 584bda0..87d34ce 100644 --- a/ast.c +++ b/ast.c @@ -2883,9 +2883,13 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value /* Now all blocks are in place */ /* From 'bin' we jump to whatever comes first */ if (bprecond) tmpblock = bprecond; - else if (bbody) tmpblock = bbody; + else tmpblock = bbody; /* can never be null */ + + /* DEAD CODE else if (bpostcond) tmpblock = bpostcond; else tmpblock = bout; + */ + if (!ir_block_create_jump(bin, ast_ctx(self), tmpblock)) return false;