From b629fdd88ac1c20439b49cbc9aa33b27cd5f6daf Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Thu, 17 Nov 2022 15:09:18 -0800 Subject: GH-99298: Clean up attribute specializations (GH-99398) --- Python/bytecodes.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'Python/bytecodes.c') diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 27ef45fba06..a3e02674c29 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); -- cgit v1.2.3