]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
I'm assuming this is a bug since all other read tests compare with itself's ir_value...
authorDale Weiler <killfieldengine@gmail.com>
Fri, 21 Jun 2013 23:54:09 +0000 (23:54 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 21 Jun 2013 23:54:09 +0000 (23:54 +0000)
ir.c

diff --git a/ir.c b/ir.c
index 09fa186a2f83b0300af949b3c1ed021cec682ff3..ea2e9cf47e8638a99c128250725ebe38913fceed 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2624,7 +2624,7 @@ bool ir_function_calculate_liferanges(ir_function *self)
             if (v->memberof) {
                 ir_value *vec = v->memberof;
                 for (s = 0; s < vec_size(vec->reads); ++s) {
-                    if (vec->reads[s]->eid == v->life[0].end)
+                    if (vec->reads[s]->eid == vec->life[0].end)
                         break;
                 }
                 if (s < vec_size(vec->reads)) {