Skip to content

Commit 3876bc7

Browse files
committed
Undo workaround for cases generator bug
1 parent 47c794f commit 3876bc7

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,9 +2272,7 @@ dummy_func(
22722272
int increfed = _Py_TryIncrefCompareStackRef(addr, attr_o, &attr);
22732273
DEOPT_IF(!increfed);
22742274
#else
2275-
// XXX - Bug in cases generator
2276-
Py_INCREF(attr_o);
2277-
attr = PyStackRef_FromPyObjectSteal(attr_o);
2275+
attr = PyStackRef_FromPyObjectNew(attr_o);
22782276
#endif
22792277
STAT_INC(LOAD_ATTR, hit);
22802278

Python/executor_cases.c.h

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)