Skip to content

Commit

Permalink
Undo workaround for cases generator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Dec 20, 2024
1 parent 47c794f commit 3876bc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,7 @@ dummy_func(
int increfed = _Py_TryIncrefCompareStackRef(addr, attr_o, &attr);
DEOPT_IF(!increfed);
#else
// XXX - Bug in cases generator
Py_INCREF(attr_o);
attr = PyStackRef_FromPyObjectSteal(attr_o);
attr = PyStackRef_FromPyObjectNew(attr_o);
#endif
STAT_INC(LOAD_ATTR, hit);

Expand Down
8 changes: 2 additions & 6 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3876bc7

Please sign in to comment.