diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 3dbed066940ebd..08925b70319e64 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2224,9 +2224,7 @@ dummy_func( } op(_LOAD_ATTR_WITH_HINT, (hint/1, owner, dict: PyDictObject * -- attr, null if (oparg & 1))) { - PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner); PyObject *attr_o; - if (!LOCK_OBJECT(dict)) { DEAD(dict); POP_DEAD_INPUTS(); diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 6ac05d7d546182..b2a80c3f079536 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2776,7 +2776,6 @@ dict = (PyDictObject *)stack_pointer[-1].bits; owner = stack_pointer[-2]; uint16_t hint = (uint16_t)CURRENT_OPERAND0(); - PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner); PyObject *attr_o; if (!LOCK_OBJECT(dict)) { stack_pointer += -1; diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 3a380d0d808e5e..19b87dbeb428f6 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -5823,7 +5823,6 @@ // _LOAD_ATTR_WITH_HINT { uint16_t hint = read_u16(&this_instr[4].cache); - PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner); PyObject *attr_o; if (!LOCK_OBJECT(dict)) { DEOPT_IF(true, LOAD_ATTR);