gh-134889: Fix handling of a few opcodes when optimizing LOAD_FAST (#134958)

We were incorrectly handling a few opcodes that leave their operands on the stack. Treat all of these conservatively; assume that they always leave operands on the stack.
This commit is contained in:
mpage 2025-06-04 16:07:58 -07:00 committed by GitHub
parent e598eecf4c
commit 6b77af257c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 117 additions and 2 deletions

View file

@ -606,7 +606,7 @@ dis_asyncwith = """\
POP_TOP
L1: RESUME 0
%4d LOAD_FAST_BORROW 0 (c)
%4d LOAD_FAST 0 (c)
COPY 1
LOAD_SPECIAL 3 (__aexit__)
SWAP 2