Fix a wrong vec_remove in the tailcall pass

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-30 11:59:03 +01:00
parent 03cb670096
commit 2ec0a96a21

2
ir.c
View file

@ -566,7 +566,7 @@ bool ir_function_pass_tailcall(ir_function *self)
{
++optimization_count[OPTIM_MINOR];
call->_ops[0] = store->_ops[0];
vec_remove(block, vec_size(block->instr) - 2, 1);
vec_remove(block->instr, vec_size(block->instr) - 2, 1);
ir_instr_delete(store);
}
else