]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
that tempbool should have gone long ago...
authorWolfgang Bumiller <blub@speed.at>
Tue, 15 Jan 2013 19:27:23 +0000 (20:27 +0100)
committerWolfgang Bumiller <blub@speed.at>
Tue, 15 Jan 2013 19:27:23 +0000 (20:27 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 4c41c8c478e82532395d354b10fab01687723c95..c3569199106fdf0d50c321305466fd68a6822fa2 100644 (file)
--- 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;
 }