mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
fix bnot_id
This commit is contained in:
parent
63969180cf
commit
2a55dd7234
1 changed files with 1 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -2331,8 +2331,8 @@ bool ast_switch_codegen(ast_switch *self, ast_function *func, bool lvalue, ir_va
|
|||
return false;
|
||||
|
||||
bcase = ir_function_create_block(func->ir_func, ast_function_label(func, "case"));
|
||||
bnot = ir_function_create_block(func->ir_func, ast_function_label(func, "not_case"));
|
||||
bnot_id = vec_size(func->ir_func->blocks);
|
||||
bnot = ir_function_create_block(func->ir_func, ast_function_label(func, "not_case"));
|
||||
if (!bcase || !bnot)
|
||||
return false;
|
||||
if (!ir_block_create_if(func->curblock, cond, bcase, bnot))
|
||||
|
|
Loading…
Reference in a new issue