Skip to content

Commit 1f48326

Browse files
committed
Add uop assert
1 parent 5700f6a commit 1f48326

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ dummy_func(void) {
14551455
PyType_Watch(TYPE_WATCHER_ID, (PyObject *)probable);
14561456
_Py_BloomFilter_Add(dependencies, probable);
14571457
sym_set_type(iter, probable);
1458+
assert((this_instr - 1)->opcode == _RECORD_NOS_TYPE);
14581459
int32_t orig_target = (this_instr - 1)->target;
14591460
ADD_OP(_GUARD_TYPE_ITER, 0, (uintptr_t)probable);
14601461
uop_buffer_last(&ctx->out_buffer)->target = orig_target;

Python/optimizer_cases.c.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)