mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
for liferange calc: the block we start from must tart with an empty set of living values
This commit is contained in:
parent
eb86a3d7a3
commit
5d884bcb45
1 changed files with 1 additions and 0 deletions
1
ir.c
1
ir.c
|
@ -1812,6 +1812,7 @@ bool ir_function_calculate_liferanges(ir_function *self)
|
|||
{
|
||||
if (self->blocks[i]->is_return)
|
||||
{
|
||||
self->blocks[i]->living_count = 0;
|
||||
if (!ir_block_life_propagate(self->blocks[i], NULL, &changed))
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue