]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fixed some dangling '}', it compiles again now
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 4 May 2012 10:26:24 +0000 (12:26 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 4 May 2012 10:26:24 +0000 (12:26 +0200)
ast.c

diff --git a/ast.c b/ast.c
index be696713daa665d6dfb8ccc9d56987cf4ecdac52..00ab6117c407a34044dc817bb3f7b6fa81a297ee 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -949,7 +949,7 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
     ir_block *old_bcontinue;
     ir_block *old_bbreak;
 
-    ir_block *btemp;
+    ir_block *tmpblock;
 
     (void)lvalue;
     (void)out;
@@ -1089,7 +1089,6 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
     else                 tmpblock = bout;
     if (!ir_block_create_jump(bin, tmpblock))
         return false;
-    }
 
     /* From precond */
     if (bprecond)
@@ -1113,7 +1112,6 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
         else                 tmpblock = bout;
         if (!ir_block_create_jump(end_bbody, tmpblock))
             return false;
-        }
     }
 
     /* from increment */
@@ -1125,7 +1123,6 @@ bool ast_loop_codegen(ast_loop *self, ast_function *func, bool lvalue, ir_value
         else                 tmpblock = bout;
         if (!ir_block_create_jump(end_bincrement, tmpblock))
             return false;
-        }
     }
 
     /* from postcond */