Files
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
..
2014-07-26 02:43:44 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00
2020-04-23 00:38:20 +02:00