mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 11:11:22 +00:00
Enter the outgoing block after a switch
This commit is contained in:
parent
4649c12fa9
commit
986d58877f
1 changed files with 2 additions and 0 deletions
2
ast.c
2
ast.c
|
@ -2389,6 +2389,8 @@ bool ast_switch_codegen(ast_switch *self, ast_function *func, bool lvalue, ir_va
|
|||
/* Jump from the last bnot to bout */
|
||||
if (!func->curblock->final && !ir_block_create_jump(func->curblock, bout))
|
||||
return false;
|
||||
/* enter the outgoing block */
|
||||
func->curblock = bout;
|
||||
|
||||
/* restore the break block */
|
||||
func->breakblock = old_break;
|
||||
|
|
Loading…
Reference in a new issue