summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-01-05 12:20:09 (GMT)
committerGitHub <noreply@github.com>2023-01-05 12:20:09 (GMT)
commitf20c553a458659f247fac1fb829f8172aa32f69a (patch)
tree3271f23aab9cae0c13db57fcc3ff195061dca868 /Python/specialize.c
parent105e37395dbd9790f81677e39ec9bd000590728f (diff)
downloadcpython-f20c553a458659f247fac1fb829f8172aa32f69a.zip
cpython-f20c553a458659f247fac1fb829f8172aa32f69a.tar.gz
cpython-f20c553a458659f247fac1fb829f8172aa32f69a.tar.bz2
GH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (GH-100753)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index d9af7b7..48814da 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -1091,9 +1091,8 @@ PyObject *descr, DescriptorClassification kind)
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_HAS_MANAGED_DICT);
goto fail;
case OFFSET_DICT:
- assert(owner_cls->tp_dictoffset > 0 && owner_cls->tp_dictoffset <= INT16_MAX);
- _py_set_opcode(instr, LOAD_ATTR_METHOD_WITH_DICT);
- break;
+ SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_NOT_MANAGED_DICT);
+ goto fail;
case LAZY_DICT:
assert(owner_cls->tp_dictoffset > 0 && owner_cls->tp_dictoffset <= INT16_MAX);
_py_set_opcode(instr, LOAD_ATTR_METHOD_LAZY_DICT);