mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Fixing a shadowing in ir.c
This commit is contained in:
parent
dfde3a583c
commit
a8b31be328
1 changed files with 4 additions and 4 deletions
8
ir.c
8
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue