From 2a55dd7234297c8b6c1b564a9089775344d43db1 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 19 Nov 2012 22:06:23 +0100 Subject: [PATCH] fix bnot_id --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2