mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-19 18:11:16 +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;
|
return false;
|
||||||
|
|
||||||
bcase = ir_function_create_block(func->ir_func, ast_function_label(func, "case"));
|
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_id = vec_size(func->ir_func->blocks);
|
||||||
|
bnot = ir_function_create_block(func->ir_func, ast_function_label(func, "not_case"));
|
||||||
if (!bcase || !bnot)
|
if (!bcase || !bnot)
|
||||||
return false;
|
return false;
|
||||||
if (!ir_block_create_if(func->curblock, cond, bcase, bnot))
|
if (!ir_block_create_if(func->curblock, cond, bcase, bnot))
|
||||||
|
|
Loading…
Reference in a new issue