summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-21 06:34:11 (GMT)
committerGitHub <noreply@github.com>2022-06-21 06:34:11 (GMT)
commit77c839c98fe57dcb01f5cad2e65fb4cac5a052c1 (patch)
treecf353c641020565ce808c2906a0059a656c39b1e /Python
parent1603a1029f44f0fdc87c65b02063229962194f84 (diff)
downloadcpython-77c839c98fe57dcb01f5cad2e65fb4cac5a052c1.zip
cpython-77c839c98fe57dcb01f5cad2e65fb4cac5a052c1.tar.gz
cpython-77c839c98fe57dcb01f5cad2e65fb4cac5a052c1.tar.bz2
gh-94021: Address unreachable code warning in specialize code (GH-94022)
Diffstat (limited to 'Python')
-rw-r--r--Python/specialize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 70ccf68..3922b1e 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -1911,13 +1911,14 @@ _Py_Specialize_CompareOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
#ifndef Py_STATS
_Py_SET_OPCODE(*instr, COMPARE_OP);
return;
-#endif
+#else
if (next_opcode == EXTENDED_ARG) {
SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_EXTENDED_ARG);
goto failure;
}
SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_NOT_FOLLOWED_BY_COND_JUMP);
goto failure;
+#endif
}
assert(oparg <= Py_GE);
int when_to_jump_mask = compare_masks[oparg];