From: Dale Weiler Date: Fri, 21 Jun 2013 23:54:09 +0000 (+0000) Subject: I'm assuming this is a bug since all other read tests compare with itself's ir_value... X-Git-Tag: v0.3.0~92 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=458cfcb48cbd5857b4ae9308e77a278dffead726;p=xonotic%2Fgmqcc.git I'm assuming this is a bug since all other read tests compare with itself's ir_value, and only this one doesn't. Otherwise why would you need to load to an ir_value for vec? --- diff --git a/ir.c b/ir.c index 09fa186..ea2e9cf 100644 --- 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)) {