Skip to content

Commit 2239db3

Browse files
committed
gh-151321: Fix incorrect opcode metadata flags for LOAD_DEREF and LOAD_CLOSURE opcodes
1 parent b8862ae commit 2239db3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Include/internal/pycore_opcode_metadata.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ def compute_properties(op: parser.CodeDef) -> Properties:
971971
or variable_used(op, "PyCell_GetRef")
972972
or variable_used(op, "PyCell_SetTakeRef")
973973
or variable_used(op, "PyCell_SwapTakeRef")
974+
or variable_used(op, "_PyCell_GetStackRef")
974975
)
975976
deopts_if = variable_used(op, "DEOPT_IF")
976977
exits_if = variable_used(op, "EXIT_IF")

0 commit comments

Comments
 (0)