Skip to content

Commit 9784cc2

Browse files
committed
Assert that _PUSH_FRAME is last in expansion
1 parent a5c00e8 commit 9784cc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ translate_bytecode_to_trace(
616616
}
617617
ADD_TO_TRACE(expansion->uops[i].uop, oparg, operand);
618618
if (expansion->uops[i].uop == _PUSH_FRAME) {
619+
assert(i + 1 == nuops);
619620
ADD_TO_TRACE(SAVE_IP, 0, 0);
620621
goto done;
621622
}

0 commit comments

Comments
 (0)