summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-21 07:01:52 (GMT)
committerGitHub <noreply@github.com>2022-06-21 07:01:52 (GMT)
commit2733c64e2868bb76ba532a15aca878ff4a2e380a (patch)
tree3a22c61237129e4103e20546c64ab3373bee6d4d /Python
parentb8fe3bd1d4be5b7d8e9e20b3c36277117e8f6102 (diff)
downloadcpython-2733c64e2868bb76ba532a15aca878ff4a2e380a.zip
cpython-2733c64e2868bb76ba532a15aca878ff4a2e380a.tar.gz
cpython-2733c64e2868bb76ba532a15aca878ff4a2e380a.tar.bz2
gh-94021: Address unreachable code warning in specialize code (GH-94022)
(cherry picked from commit 77c839c98fe57dcb01f5cad2e65fb4cac5a052c1) Co-authored-by: Christian Heimes <christian@python.org>
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 fa42993..80d952c 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -1905,13 +1905,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];