When a state is removed, remove its global declaration too.

This commit is contained in:
Sei Lisa 2015-06-13 02:19:15 +02:00
parent 8ca88013a8
commit e1d0753fec

View file

@ -495,7 +495,7 @@ class deadcode(object):
# We can't remove it here because there may be more references
# that we will remove in CleanNode later, that hold the
# original value.
if node['nt'] == 'DECL':
if node['nt'] == 'DECL' or node['nt'] == 'STDEF':
GlobalDeletions.append(node['name'])
del self.tree[idx]
del LocMap[idx]