mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
ast_loop must end by entering the outgoing block
This commit is contained in:
parent
e0331ef15f
commit
c670a8d278
1 changed files with 3 additions and 0 deletions
3
ast.c
3
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))
|
||||
|
|
Loading…
Reference in a new issue