summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_bytecodes.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-12-19 02:08:17 (GMT)
committerGitHub <noreply@github.com>2024-12-19 02:08:17 (GMT)
commit48c70b8f7dfd00a018abbac50ea987f54fa4db51 (patch)
treecb845fc352998aa71d0a490c346b4c4145b1a6af /Python/optimizer_bytecodes.c
parentf802c8bf872ab882d3056675acc79c950fe5b93c (diff)
downloadcpython-48c70b8f7dfd00a018abbac50ea987f54fa4db51.zip
cpython-48c70b8f7dfd00a018abbac50ea987f54fa4db51.tar.gz
cpython-48c70b8f7dfd00a018abbac50ea987f54fa4db51.tar.bz2
gh-115999: Enable BINARY_SUBSCR_GETITEM for free-threaded build (gh-127737)
Diffstat (limited to 'Python/optimizer_bytecodes.c')
-rw-r--r--Python/optimizer_bytecodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index 0b8aff0..e60c0d3 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -349,9 +349,10 @@ dummy_func(void) {
GETLOCAL(this_instr->operand0) = res;
}
- op(_BINARY_SUBSCR_INIT_CALL, (container, sub -- new_frame: _Py_UOpsAbstractFrame *)) {
+ op(_BINARY_SUBSCR_INIT_CALL, (container, sub, getitem -- new_frame: _Py_UOpsAbstractFrame *)) {
(void)container;
(void)sub;
+ (void)getitem;
new_frame = NULL;
ctx->done = true;
}