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/generated_cases.c.h | |
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/generated_cases.c.h')
-rw-r--r-- | Python/generated_cases.c.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index b606558..ba00203 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -1136,11 +1136,7 @@ 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); @@ -1718,11 +1714,7 @@ 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); |