]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Only eliminate jumps to successor block if jump is unconditional. (GH-24417)
authorMark Shannon <mark@hotpy.org>
Tue, 2 Feb 2021 14:59:15 +0000 (14:59 +0000)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 14:59:15 +0000 (14:59 +0000)
commit802b645e81a72399a7ef47ef000d468c775dcd3e
tree914f0e42d0231ae52caf1a436d269cff284631f5
parent9eb11a139fac5514d8456626806a68b3e3b7eafb
Only eliminate jumps to successor block if jump is unconditional. (GH-24417)

* Prevents elimination of the sole test of a value in statements like:
   if x or True: ...
Lib/test/test_bool.py
Python/compile.c