Skip to content

Commit d47bed2

Browse files
Fix _FOR_ITER_TIER_TWO
1 parent 778c1be commit d47bed2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Python/optimizer.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,10 +1106,7 @@ prepare_for_execution(_PyUOpInstruction *buffer, int length)
11061106
else if (exit_flags & HAS_PERIODIC_FLAG) {
11071107
base_exit_op = _HANDLE_PENDING_AND_DEOPT;
11081108
}
1109-
if (base_opcode == _FOR_ITER_TIER_TWO) {
1110-
base_exit_op = _DYNAMIC_EXIT;
1111-
}
1112-
else if (
1109+
if (
11131110
base_opcode == _GUARD_IP__PUSH_FRAME ||
11141111
base_opcode == _GUARD_IP_RETURN_VALUE ||
11151112
base_opcode == _GUARD_IP_YIELD_VALUE ||

0 commit comments

Comments
 (0)