mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58: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]}
|
||||
if 'SEF' in value:
|
||||
ret['SEF'] = True
|
||||
if 'X' in value:
|
||||
ret['X'] = value['X']
|
||||
return ret
|
||||
|
||||
def CopyNode(self, node):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue