LSL-PyOptimizer/lslopt
Sei Lisa d6bf0c390e Fix two issues in the dead code removal module
1. When the last statement of a function is a RETURN statement which is syntactically required, it could still be deleted.
2. The child of a RETURN statement could be removed if the statement was not executed.

This commit fixes both issues.

Bug report and test case provided by @Tonaie. Fixes #14.
2020-06-01 20:49:48 +02:00
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Add llLinear2sRGB / llsRGB2Linear implementations 2020-04-23 01:10:37 +02:00
lslcommon.py Bump copyright year 2020-04-23 00:38:20 +02:00
lsldeadcode.py Fix two issues in the dead code removal module 2020-06-01 20:49:48 +02:00
lslextrafuncs.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslfoldconst.py Fix "" + list_expr producing list_expr 2020-04-23 13:47:57 +02:00
lslfuncopt.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslfuncs.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslinliner.py Bump copyright year 2020-04-23 00:38:20 +02:00
lsljson.py Bump copyright year 2020-04-23 00:38:20 +02:00
lsllastpass.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslloadlib.py Bump copyright year 2020-04-23 00:38:20 +02:00
lsloptimizer.py Bump copyright year 2020-04-23 00:38:20 +02:00
lsloutput.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslparse.py Bump copyright year 2020-04-23 00:38:20 +02:00
lslrenamer.py Bump copyright year 2020-04-23 00:38:20 +02:00