]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fixing a shadowing in ir.c
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 22 Nov 2012 20:12:15 +0000 (21:12 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 22 Nov 2012 20:12:15 +0000 (21:12 +0100)
ir.c

diff --git a/ir.c b/ir.c
index e0eee379b032c9f77f51e114f2ba8326c44f5c93..70004b87bd87b38c1d045af05f9f3bad4414048f 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2600,20 +2600,20 @@ tailcall:
                 stmt.o2.u1 = OFS_PARM0 + 3 * p;
                 vec_push(code_statements, stmt);
             }
-            /* No whandle extparams */
+            /* Nohandle extparams */
             first = vec_size(instr->params);
             for (; p < first; ++p)
             {
                 ir_builder *ir = func->owner;
                 ir_value *param = instr->params[p];
-                ir_value *target;
+                ir_value *targetparam;
 
                 if (p-8 >= vec_size(ir->extparams)) {
                     irerror(instr->context, "Not enough extparam-globals have been created");
                     return false;
                 }
 
-                target = ir->extparams[p-8];
+                targetparam = ir->extparams[p-8];
 
                 stmt.opcode = INSTR_STORE_F;
                 stmt.o3.u1 = 0;
@@ -2623,7 +2623,7 @@ tailcall:
                 else
                     stmt.opcode = type_store_instr[param->vtype];
                 stmt.o1.u1 = ir_value_code_addr(param);
-                stmt.o2.u1 = ir_value_code_addr(target);
+                stmt.o2.u1 = ir_value_code_addr(targetparam);
                 vec_push(code_statements, stmt);
             }