X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ast.c;h=584bda0714a5f923524ff828c66eaa6919ac9c84;hp=a23aa75667710d23f7268ee565a9aa9a30c52150;hb=063c50fce450693f0098cbc4a28efd109cbed01b;hpb=5429b6f18933d108741dff8eed8ca20df80e7b59 diff --git a/ast.c b/ast.c index a23aa75..584bda0 100644 --- a/ast.c +++ b/ast.c @@ -2893,10 +2893,13 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value if (bprecond) { ir_block *ontrue, *onfalse; - if (bbody) ontrue = bbody; + ontrue = bbody; /* can never be null */ + + /* all of this is dead code else if (bincrement) ontrue = bincrement; - else if (bpostcond) ontrue = bpostcond; - else ontrue = bprecond; + else ontrue = bpostcond; + */ + onfalse = bout; if (self->pre_not) { tmpblock = ontrue;