mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-115685: Type/values propagate for TO_BOOL in tier 2 (GH-115686)
This commit is contained in:
parent
c04a981ff4
commit
d01886c5c9
6 changed files with 163 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue