mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Add an assertion where we expect sym['W'] to have a symbol
This commit is contained in:
parent
aca4cc2721
commit
5a5635358f
1 changed files with 2 additions and 2 deletions
|
@ -428,8 +428,8 @@ class deadcode(object):
|
||||||
if sym:
|
if sym:
|
||||||
# Mark as executed, so it isn't optimized out.
|
# Mark as executed, so it isn't optimized out.
|
||||||
# Make shallow copy.
|
# Make shallow copy.
|
||||||
# TODO: Needs more analysis to see if it's correct or not.
|
# TODO: Should the copy be a deep copy?
|
||||||
# (See constant_anomaly.lsl)
|
assert sym.get('W', False) is not False
|
||||||
new = sym['W'].copy()
|
new = sym['W'].copy()
|
||||||
if hasattr(new, 'orig'):
|
if hasattr(new, 'orig'):
|
||||||
del new.orig
|
del new.orig
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue