From: Ken Jin Date: Sat, 28 Jun 2025 10:30:30 +0000 (+0800) Subject: gh-132732: Fix up pure types in JIT (GH-136050) X-Git-Tag: v3.15.0a1~1151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff7b5d44a00acfa681afd8aea70abc66ea536723;p=thirdparty%2FPython%2Fcpython.git gh-132732: Fix up pure types in JIT (GH-136050) Fix up pure types in JIT --- diff --git a/Python/optimizer_symbols.c b/Python/optimizer_symbols.c index bd3ec615d085..8a3df236c806 100644 --- a/Python/optimizer_symbols.c +++ b/Python/optimizer_symbols.c @@ -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); }