]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix a wrong vec_remove in the tailcall pass
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 10:59:03 +0000 (11:59 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 10:59:03 +0000 (11:59 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 72129db6a9b55c62145ac79983bde2d190addfca..2c7c3b63168c1116fbbcf9e8465be0f0a47b6e81 100644 (file)
--- 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