Skip to content

Commit c84a36a

Browse files
committed
gh-148380: relax assert
1 parent 914ed80 commit c84a36a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ dummy_func(void) {
246246

247247
op(_GUARD_TYPE_VERSION, (type_version/2, owner -- owner)) {
248248
assert(type_version);
249-
assert(this_instr[-1].opcode == _RECORD_TOS_TYPE);
249+
assert(this_instr[-1].opcode == _RECORD_TOS_TYPE || this_instr[-1].opcode == _RECORD_TOS);
250250
if (sym_matches_type_version(owner, type_version)) {
251251
ADD_OP(_NOP, 0, 0);
252252
}

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)