mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
When a state is removed, remove its global declaration too.
This commit is contained in:
parent
8ca88013a8
commit
e1d0753fec
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ class deadcode(object):
|
||||||
# We can't remove it here because there may be more references
|
# We can't remove it here because there may be more references
|
||||||
# that we will remove in CleanNode later, that hold the
|
# that we will remove in CleanNode later, that hold the
|
||||||
# original value.
|
# original value.
|
||||||
if node['nt'] == 'DECL':
|
if node['nt'] == 'DECL' or node['nt'] == 'STDEF':
|
||||||
GlobalDeletions.append(node['name'])
|
GlobalDeletions.append(node['name'])
|
||||||
del self.tree[idx]
|
del self.tree[idx]
|
||||||
del LocMap[idx]
|
del LocMap[idx]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue