apparently it's possible to segfault DP with a bad INSTR_LOAD_V - so the IR should not allow this

This commit is contained in:
Wolfgang Bumiller 2013-01-13 21:00:13 +01:00
parent ab8cc64dfd
commit bec05f1bbb

2
ir.c
View file

@ -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)) if (value->memberof && ir_value_life_merge(value->memberof, instr->eid+1))
*changed = true; *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]; value = instr->_ops[1];
/* the float source will get an additional lifetime */ /* the float source will get an additional lifetime */