fix an off-by-one bug when copying varargs

This commit is contained in:
Wolfgang Bumiller 2013-01-16 21:04:08 +01:00
parent 00a9d2a9e3
commit 81f3a6d186

2
ir.c
View file

@ -3200,7 +3200,7 @@ static bool gen_function_varargs_copy(ir_function *self)
code_push_statement(&stmt, self->context.line);
continue;
}
ext = i - 8;
ext = i - 9;
if (ext >= vec_size(ir->extparams))
ir_gen_extparam(ir);