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.
This commit is contained in:
1
unit_tests/regression.suite/state-in-udf-6.skp
Normal file
1
unit_tests/regression.suite/state-in-udf-6.skp
Normal file
@@ -0,0 +1 @@
|
||||
Skipped because our fix to #14 brings back the RETURN statement.
|
||||
Reference in New Issue
Block a user