]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fix bnot_id
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 21:06:23 +0000 (22:06 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 21:06:23 +0000 (22:06 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 8083b36e0ca6e8f5783d489e8e2b2d7073108174..4da45eafbcdafdcf97d9bd13cdd94750451282b6 100644 (file)
--- 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))