gh-115685: Type/values propagate for TO_BOOL in tier 2 (GH-115686)

This commit is contained in:
Ken Jin 2024-03-01 06:13:38 +08:00 committed by GitHub
parent c04a981ff4
commit d01886c5c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 163 additions and 30 deletions

View file

@ -4043,6 +4043,11 @@ dummy_func(
value = ptr;
}
tier2 pure op (_POP_TOP_LOAD_CONST_INLINE_BORROW, (ptr/4, pop -- value)) {
Py_DECREF(pop);
value = ptr;
}
tier2 pure op(_LOAD_CONST_INLINE_WITH_NULL, (ptr/4 -- value, null)) {
value = Py_NewRef(ptr);
null = NULL;