]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-146261: Fix bug in `_Py_uop_sym_set_func_version` (GH-146291)
authorSacul <183588943+Sacul0457@users.noreply.github.com>
Sun, 22 Mar 2026 16:11:37 +0000 (00:11 +0800)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2026 16:11:37 +0000 (00:11 +0800)
Python/optimizer_symbols.c

index c8697b32ab2dd4356986f9fda9ceead42af30413..e14ca1228d2f563058fa78a1447e19a13e09117e 100644 (file)
@@ -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 ||