From: Wolfgang Bumiller Date: Tue, 15 Jan 2013 19:27:23 +0000 (+0100) Subject: that tempbool should have gone long ago... X-Git-Tag: before-library~253 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b311cd61637df4a65d91c92c0d195de99b116b88;p=xonotic%2Fgmqcc.git that tempbool should have gone long ago... --- diff --git a/ir.c b/ir.c index 4c41c8c..c356919 100644 --- a/ir.c +++ b/ir.c @@ -2392,13 +2392,13 @@ static void ir_op_read_write(int op, size_t *read, size_t *write) static bool ir_block_living_add_instr(ir_block *self, size_t eid) { - size_t i; - bool changed = false; - bool tempbool; - for (i = 0; i != vec_size(self->living); ++i) + size_t i; + const size_t vs = vec_size(self->living); + bool changed = false; + for (i = 0; i != vs; ++i) { - tempbool = ir_value_life_merge(self->living[i], eid); - changed = changed || tempbool; + if (ir_value_life_merge(self->living[i], eid)) + changed = true; } return changed; }