Skip to content

Commit 6c522de

Browse files
authored
GH-125515: Remove two unused error branches. (#133181)
Remove two unused error branches in the generated bytecode handling.
1 parent 327f5ff commit 6c522de

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

Python/bytecodes.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,18 +5332,6 @@ dummy_func(
53325332
assert(tstate->tracing || eval_breaker == FT_ATOMIC_LOAD_UINTPTR_ACQUIRE(_PyFrame_GetCode(frame)->_co_instrumentation_version));
53335333
}
53345334

5335-
label(pop_4_error) {
5336-
stack_pointer -= 4;
5337-
assert(WITHIN_STACK_BOUNDS());
5338-
goto error;
5339-
}
5340-
5341-
label(pop_3_error) {
5342-
stack_pointer -= 3;
5343-
assert(WITHIN_STACK_BOUNDS());
5344-
goto error;
5345-
}
5346-
53475335
label(pop_2_error) {
53485336
stack_pointer -= 2;
53495337
assert(WITHIN_STACK_BOUNDS());

Python/generated_cases.c.h

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/opcode_targets.h

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)