Skip to content

Commit 77c839c

Browse files
authored
gh-94021: Address unreachable code warning in specialize code (GH-94022)
1 parent 1603a10 commit 77c839c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix unreachable code warning in ``Python/specialize.c``.

Python/specialize.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1911,13 +1911,14 @@ _Py_Specialize_CompareOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
19111911
#ifndef Py_STATS
19121912
_Py_SET_OPCODE(*instr, COMPARE_OP);
19131913
return;
1914-
#endif
1914+
#else
19151915
if (next_opcode == EXTENDED_ARG) {
19161916
SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_EXTENDED_ARG);
19171917
goto failure;
19181918
}
19191919
SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_NOT_FOLLOWED_BY_COND_JUMP);
19201920
goto failure;
1921+
#endif
19211922
}
19221923
assert(oparg <= Py_GE);
19231924
int when_to_jump_mask = compare_masks[oparg];

0 commit comments

Comments
 (0)