]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
I'm assuming this is a bug since all other read tests compare with itself's ir_value...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 5c42a304e0fa1008eb72b1180e705133783adbe5..a23aa75667710d23f7268ee565a9aa9a30c52150 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -2934,9 +2934,13 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
     {
         ir_block *ontrue, *onfalse;
         if      (bprecond)   ontrue = bprecond;
-        else if (bbody)      ontrue = bbody;
+        else                 ontrue = bbody; /* can never be null */
+
+        /* all of this is dead code 
         else if (bincrement) ontrue = bincrement;
         else                 ontrue = bpostcond;
+        */
+
         onfalse = bout;
         if (self->post_not) {
             tmpblock = ontrue;