summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_bytecodes.c
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannah@python.org>2025-12-15 23:18:44 (GMT)
committerGitHub <noreply@github.com>2025-12-15 23:18:44 (GMT)
commitbef63d2fb81ae28760040157ea589541bed47d02 (patch)
treedf24d3b3f0dec554a2f43869ac12db1c9be1e262 /Python/optimizer_bytecodes.c
parentf277781bba684322dffffe45cd878f4652ccf7e4 (diff)
downloadcpython-bef63d2fb81ae28760040157ea589541bed47d02.zip
cpython-bef63d2fb81ae28760040157ea589541bed47d02.tar.gz
cpython-bef63d2fb81ae28760040157ea589541bed47d02.tar.bz2
GH-134584: Remove redundant refcount from `_STORE_ATTR_SLOT` (#142729)
Diffstat (limited to 'Python/optimizer_bytecodes.c')
-rw-r--r--Python/optimizer_bytecodes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index b97b4c3..decf988 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -114,6 +114,12 @@ dummy_func(void) {
ss = sub_st;
}
+ op(_STORE_ATTR_SLOT, (index/1, value, owner -- o)) {
+ (void)index;
+ (void)value;
+ o = owner;
+ }
+
op(_STORE_SUBSCR_DICT, (value, dict_st, sub -- st)) {
(void)value;
st = dict_st;