I'm assuming this is a bug since all other read tests compare with itself's ir_value...
[xonotic/gmqcc.git] / 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)) {