From: Wolfgang (Blub) Bumiller Date: Fri, 30 Nov 2012 10:59:03 +0000 (+0100) Subject: Fix a wrong vec_remove in the tailcall pass X-Git-Tag: 0.1.9~195 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ec0a96a2120f803fc408b747312bd450963ecb7;p=xonotic%2Fgmqcc.git Fix a wrong vec_remove in the tailcall pass --- diff --git a/ir.c b/ir.c index 72129db..2c7c3b6 100644 --- a/ir.c +++ b/ir.c @@ -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