diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-11-17 23:09:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 23:09:18 (GMT) |
commit | b629fdd88ac1c20439b49cbc9aa33b27cd5f6daf (patch) | |
tree | c94c9632b3c000aeba65cc019f0547ca548c8548 /Python/bytecodes.c | |
parent | 8555dee5aeedb2f37ee2e2216ef8707be0fc1d9d (diff) | |
download | cpython-b629fdd88ac1c20439b49cbc9aa33b27cd5f6daf.zip cpython-b629fdd88ac1c20439b49cbc9aa33b27cd5f6daf.tar.gz cpython-b629fdd88ac1c20439b49cbc9aa33b27cd5f6daf.tar.bz2 |
GH-99298: Clean up attribute specializations (GH-99398)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 27ef45f..a3e0267 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1137,11 +1137,7 @@ dummy_func( PyObject *owner = TOP(); PyObject *name = GETITEM(names, oparg); next_instr--; - if (_Py_Specialize_StoreAttr(owner, next_instr, name)) { - // "undo" the rewind so end up in the correct handler: - next_instr++; - goto error; - } + _Py_Specialize_StoreAttr(owner, next_instr, name); DISPATCH_SAME_OPARG(); } STAT_INC(STORE_ATTR, deferred); @@ -1713,11 +1709,7 @@ dummy_func( PyObject *owner = TOP(); PyObject *name = GETITEM(names, oparg>>1); next_instr--; - if (_Py_Specialize_LoadAttr(owner, next_instr, name)) { - // "undo" the rewind so end up in the correct handler: - next_instr++; - goto error; - } + _Py_Specialize_LoadAttr(owner, next_instr, name); DISPATCH_SAME_OPARG(); } STAT_INC(LOAD_ATTR, deferred); |