Skip to content

Commit 0bf3686

Browse files
committed
Handle variable definition through out parameters
1 parent f7cccf8 commit 0bf3686

File tree

7 files changed

+10222
-51
lines changed

7 files changed

+10222
-51
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,8 @@ dummy_func(
22372237
PyObject *attr_o = FT_ATOMIC_LOAD_PTR_ACQUIRE(*value_ptr);
22382238
DEOPT_IF(attr_o == NULL);
22392239
#ifdef Py_GIL_DISABLED
2240-
if (!_Py_TryIncrefCompareStackRef(value_ptr, attr_o, &attr)) {
2240+
int increfed = _Py_TryIncrefCompareStackRef(value_ptr, attr_o, &attr);
2241+
if (!increfed) {
22412242
DEOPT_IF(true);
22422243
}
22432244
#else

0 commit comments

Comments
 (0)