From: Wolfgang (Blub) Bumiller Date: Mon, 19 Nov 2012 21:06:23 +0000 (+0100) Subject: fix bnot_id X-Git-Tag: 0.1.9~394 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2a55dd7234297c8b6c1b564a9089775344d43db1;p=xonotic%2Fgmqcc.git fix bnot_id --- diff --git a/ast.c b/ast.c index 8083b36..4da45ea 100644 --- a/ast.c +++ b/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))