Skip to content

Commit cda3dce

Browse files
fix a bug where we point FOR_ITER_TIER_TWO
1 parent b7b3c23 commit cda3dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ _PyJit_translate_single_bytecode_to_trace(
825825
if (uop == _TIER2_RESUME_CHECK) {
826826
target = next_inst;
827827
}
828-
else if (uop != _FOR_ITER_TIER_TWO) {
828+
else {
829829
int extended_arg = orig_oparg > 255;
830830
uint32_t jump_target = next_inst + orig_oparg + extended_arg;
831831
assert(_Py_GetBaseCodeUnit(old_code, jump_target).op.code == END_FOR);

0 commit comments

Comments
 (0)