summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2024-02-29 22:13:38 (GMT)
committerGitHub <noreply@github.com>2024-02-29 22:13:38 (GMT)
commitd01886c5c9e3a62921b304ba7e5145daaa56d3cf (patch)
tree8196c3f28cf0c8dbd12e6d2c04b70f79af7d69ff /Python/executor_cases.c.h
parentc04a981ff414b101736688773dbe24f824ca32ce (diff)
downloadcpython-d01886c5c9e3a62921b304ba7e5145daaa56d3cf.zip
cpython-d01886c5c9e3a62921b304ba7e5145daaa56d3cf.tar.gz
cpython-d01886c5c9e3a62921b304ba7e5145daaa56d3cf.tar.bz2
gh-115685: Type/values propagate for TO_BOOL in tier 2 (GH-115686)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 9ec1be9..e84c332 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -3759,6 +3759,17 @@
break;
}
+ case _POP_TOP_LOAD_CONST_INLINE_BORROW: {
+ PyObject *pop;
+ PyObject *value;
+ pop = stack_pointer[-1];
+ PyObject *ptr = (PyObject *)CURRENT_OPERAND();
+ Py_DECREF(pop);
+ value = ptr;
+ stack_pointer[-1] = value;
+ break;
+ }
+
case _LOAD_CONST_INLINE_WITH_NULL: {
PyObject *value;
PyObject *null;