From: Wolfgang (Blub) Bumiller Date: Thu, 22 Nov 2012 20:12:15 +0000 (+0100) Subject: Fixing a shadowing in ir.c X-Git-Tag: 0.1.9~343 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8b31be328cf4e830649a61aba10fe95c25e40d3;p=xonotic%2Fgmqcc.git Fixing a shadowing in ir.c --- diff --git a/ir.c b/ir.c index e0eee37..70004b8 100644 --- 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 */ + /* Now handle 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); }