]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix a bug where we point FOR_ITER_TIER_TWO
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 6 Nov 2025 21:41:12 +0000 (21:41 +0000)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 6 Nov 2025 21:41:12 +0000 (21:41 +0000)
Python/optimizer.c

index 601f249e9c4cdbdbd5f083a3e915ce514c48548e..845ed3d86c09dc7fedd7b81df71181a9ca4a3760 100644 (file)
@@ -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);