Skip to content
Snippets Groups Projects
user avatar
Christian Heimes authored
[3.11] gh-92228: disable the compiler's 'small exit block inlining' optimization for blocks that have a line number (GH-94592) (GH-94643)



Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature.

This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None"..
(cherry picked from commit bde06e1b)

Co-authored-by: default avatarIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
74c953d3
History
Name Last commit Last update