mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Treat global vars as always live.
This fixes the infloop.r test.
This commit is contained in:
parent
2478b053de
commit
738fc65e0f
1 changed files with 2 additions and 0 deletions
|
@ -387,6 +387,8 @@ dag_remove_dead_vars (dag_t *dag, set_t *live_vars)
|
|||
var = flow_get_var (l->op);
|
||||
if (!var)
|
||||
continue;
|
||||
if (set_is_member (dag->flownode->global_vars, var->number))
|
||||
continue;
|
||||
if (!set_is_member (live_vars, var->number))
|
||||
set_remove (l->dagnode->identifiers, l->number);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue