From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Thu, 6 Nov 2025 21:41:12 +0000 (+0000) Subject: fix a bug where we point FOR_ITER_TIER_TWO X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cda3dcea645fb9b6a74619cd99b1b4c12ecdb599;p=thirdparty%2FPython%2Fcpython.git fix a bug where we point FOR_ITER_TIER_TWO --- diff --git a/Python/optimizer.c b/Python/optimizer.c index 601f249e9c4c..845ed3d86c09 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -825,7 +825,7 @@ _PyJit_translate_single_bytecode_to_trace( if (uop == _TIER2_RESUME_CHECK) { target = next_inst; } - else if (uop != _FOR_ITER_TIER_TWO) { + else { int extended_arg = orig_oparg > 255; uint32_t jump_target = next_inst + orig_oparg + extended_arg; assert(_Py_GetBaseCodeUnit(old_code, jump_target).op.code == END_FOR);