Reduce adding RETURN_END_IF in 3.5+

The whole control flow determination has to be redone in a less
haphazard way using real flow-control analysis. Hopefully that's on the
way.

In the meantime we have this hack.
This commit is contained in:
rocky
2017-04-14 06:57:25 -04:00
parent 39b9810587
commit 47dbc57f3d

View File

@@ -894,7 +894,7 @@ class Scanner3(Scanner):
return
pass
pass
if code[pre_rtarget] == self.opc.RETURN_VALUE:
if code[pre_rtarget] == self.opc.RETURN_VALUE and self.version < 3.5:
self.return_end_ifs.add(pre_rtarget)
else:
self.fixed_jumps[offset] = rtarget