8000 Assert base opcode in _Py_Specialize_ForIter · python/cpython@329dead · GitHub
[go: up one dir, main page]

Skip to content

Commit 329dead

Browse files
committed
Assert base opcode in _Py_Specialize_ForIter
1 parent 6403752 commit 329dead

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/specialize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,7 @@ int
23532353
void
23542354
_Py_Specialize_ForIter(PyObject *iter, _Py_CODEUNIT *instr, int oparg)
23552355
{
2356+
assert(_PyOpcode_Deopt[instr->op.code] == FOR_ITER);
23562357
assert(ENABLE_SPECIALIZATION);
23572358
assert(_PyOpcode_Caches[FOR_ITER] == INLINE_CACHE_ENTRIES_FOR_ITER);
23582359
_PyForIterCache *cache = (_PyForIterCache *)(instr + 1);

0 commit comments

Comments
 (0)
0