mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Propagate X flag in Cast(): if the expression executes, so does the cast.
This commit is contained in:
parent
c080f4b596
commit
de4d6f8857
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,8 @@ class optimizer(renamer, deadcode):
|
||||||
ret = {'nt':'CAST', 't':newtype, 'ch':[value]}
|
ret = {'nt':'CAST', 't':newtype, 'ch':[value]}
|
||||||
if 'SEF' in value:
|
if 'SEF' in value:
|
||||||
ret['SEF'] = True
|
ret['SEF'] = True
|
||||||
|
if 'X' in value:
|
||||||
|
ret['X'] = value['X']
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def CopyNode(self, node):
|
def CopyNode(self, node):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue