]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
apparently it's possible to segfault DP with a bad INSTR_LOAD_V - so the IR should...
authorWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 20:00:13 +0000 (21:00 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 20:00:13 +0000 (21:00 +0100)
ir.c

diff --git a/ir.c b/ir.c
index a641310644dc950712894eef33cfe9965c9c1d09..7bfd43f9386ab87595bb8f34b52dabcece0f3e7c 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2554,7 +2554,7 @@ static bool ir_block_life_propagate(ir_block *self, ir_block *prev, bool *change
             if (value->memberof && ir_value_life_merge(value->memberof, instr->eid+1))
                 *changed = true;
         }
-        else if (instr->opcode == INSTR_MUL_FV)
+        else if (instr->opcode == INSTR_MUL_FV || instr->opcode == INSTR_LOAD_V)
         {
             value = instr->_ops[1];
             /* the float source will get an additional lifetime */