gh-132732: Fix up pure types in JIT (GH-136050)

Fix up pure types in JIT
This commit is contained in:
Ken Jin 2025-06-28 18:30:30 +08:00 committed by GitHub
parent 35ecaf90b2
commit ff7b5d44a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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);
}