Skip to content

Commit cb3d982

Browse files
committed
Emit unused_guard in more places
1 parent 085e172 commit cb3d982

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,7 +2816,7 @@ dummy_func(
28162816
}
28172817

28182818
tier1 op(_JIT, (--)) {
2819-
#ifdef _Py_TIER2
2819+
#ifdef _Py_TIER2
28202820
_Py_BackoffCounter counter = this_instr[1].counter;
28212821
if (backoff_counter_triggers(counter)) {
28222822
_Py_CODEUNIT *start = this_instr;
@@ -2841,7 +2841,7 @@ dummy_func(
28412841
else {
28422842
ADVANCE_ADAPTIVE_COUNTER(this_instr[1].counter);
28432843
}
2844-
#endif /* _Py_TIER2 */
2844+
#endif
28452845
}
28462846

28472847
macro(JUMP_BACKWARD) =

Python/generated_cases.c.h

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier1_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def generate_tier1(
144144
needs_this = uses_this(inst)
145145
out.emit("\n")
146146
out.emit(f"TARGET({name}) {{\n")
147-
unused_guard = "(void)this_instr;\n" if inst.family is None else ""
147+
unused_guard = "(void)this_instr;\n"
148148
if inst.properties.needs_prev:
149149
out.emit(f"_Py_CODEUNIT* const prev_instr = frame->instr_ptr;\n")
150150
if needs_this and not inst.is_target:

0 commit comments

Comments
 (0)