mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
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:
parent
ab8cc64dfd
commit
bec05f1bbb
1 changed files with 1 additions and 1 deletions
2
ir.c
2
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 */
|
||||
|
|
Loading…
Reference in a new issue