Skip to content
Snippets Groups Projects
Unverified Commit 74c953d3 authored by Christian Heimes's avatar Christian Heimes Committed by GitHub
Browse files

[3.11] gh-92228: disable the compiler's 'small exit block inlining'...

[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>
parent 3517c138
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment