mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
same as before for loops: don't try creating a jump if the body ends in a return
This commit is contained in:
parent
49cd86e8ed
commit
4254845227
1 changed files with 1 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -1653,7 +1653,7 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
|
|||
else if (bpostcond) tmpblock = bpostcond;
|
||||
else if (bprecond) tmpblock = bprecond;
|
||||
else tmpblock = bout;
|
||||
if (!ir_block_create_jump(end_bbody, tmpblock))
|
||||
if (!end_bbody->final && !ir_block_create_jump(end_bbody, tmpblock))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue