]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132732: Fix up pure types in JIT (GH-136050)
authorKen Jin <kenjin@python.org>
Sat, 28 Jun 2025 10:30:30 +0000 (18:30 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Jun 2025 10:30:30 +0000 (18:30 +0800)
Fix up pure types in JIT

Python/optimizer_symbols.c

index bd3ec615d08592e4a0717e229e5e924cf87d7ba8..8a3df236c806269d0ca8f7e19b1fafb96604c197 100644 (file)
@@ -212,7 +212,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym)
     PyTypeObject *typ = Py_TYPE(const_val);
     return (typ == &PyUnicode_Type) ||
            (typ == &PyFloat_Type) ||
-           (typ == &PyTuple_Type) ||
+           (typ == &_PyNone_Type) ||
            (typ == &PyBool_Type);
 }