From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 20:00:13 +0000 (+0100) Subject: apparently it's possible to segfault DP with a bad INSTR_LOAD_V - so the IR should... X-Git-Tag: before-library~265 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bec05f1bbb0829b163e7901ac561ebaf593ede4b;p=xonotic%2Fgmqcc.git apparently it's possible to segfault DP with a bad INSTR_LOAD_V - so the IR should not allow this --- diff --git a/ir.c b/ir.c index a641310..7bfd43f 100644 --- 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 */