From: Sacul <183588943+Sacul0457@users.noreply.github.com> Date: Sun, 22 Mar 2026 16:11:37 +0000 (+0800) Subject: gh-146261: Fix bug in `_Py_uop_sym_set_func_version` (GH-146291) X-Git-Tag: v3.15.0a8~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ceb1fb284a3171fa79a16351a8389e369cf842a;p=thirdparty%2FPython%2Fcpython.git gh-146261: Fix bug in `_Py_uop_sym_set_func_version` (GH-146291) --- diff --git a/Python/optimizer_symbols.c b/Python/optimizer_symbols.c index c8697b32ab2d..e14ca1228d2f 100644 --- a/Python/optimizer_symbols.c +++ b/Python/optimizer_symbols.c @@ -522,7 +522,7 @@ _Py_uop_sym_set_func_version(JitOptContext *ctx, JitOptRef ref, uint32_t version case JIT_SYM_PREDICATE_TAG: case JIT_SYM_TRUTHINESS_TAG: sym_set_bottom(ctx, sym); - return true; + return false; case JIT_SYM_RECORDED_VALUE_TAG: { PyObject *val = sym->recorded_value.value; if (Py_TYPE(val) != &PyFunction_Type ||