Skip to content

Commit 02f1fb4

Browse files
fix non-sstandard C
1 parent 2c603cc commit 02f1fb4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Python/optimizer.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -620,15 +620,17 @@ _PyJIT_translate_single_bytecode_to_trace(
620620
if (jump_taken ||
621621
opcode == WITH_EXCEPT_START || opcode == RERAISE || opcode == CLEANUP_THROW || opcode == PUSH_EXC_INFO) {
622622
unsupported:
623-
// Rewind to previous instruction and replace with _EXIT_TRACE.
624-
_PyUOpInstruction *curr = &trace[trace_length-1];
625-
while (curr->opcode != _SET_IP && trace_length > 1) {
626-
trace_length--;
627-
curr = &trace[trace_length-1];
628-
}
629-
assert(curr->opcode == _SET_IP || trace_length == 1);
630-
curr->opcode = _EXIT_TRACE;
631-
goto done;
623+
{
624+
// Rewind to previous instruction and replace with _EXIT_TRACE.
625+
_PyUOpInstruction *curr = &trace[trace_length-1];
626+
while (curr->opcode != _SET_IP && trace_length > 1) {
627+
trace_length--;
628+
curr = &trace[trace_length-1];
629+
}
630+
assert(curr->opcode == _SET_IP || trace_length == 1);
631+
curr->opcode = _EXIT_TRACE;
632+
goto done;
633+
}
632634
}
633635
RESERVE_RAW(expansion->nuops + needs_guard_ip + 3, "uop and various checks");
634636

0 commit comments

Comments
 (0)