Skip to content

Commit

Permalink
gh-87849: fix SEND specialization family definition (GH-104268)
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm authored May 11, 2023
1 parent e629ab6 commit 1670729
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 176 deletions.
4 changes: 2 additions & 2 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ dummy_func(
PREDICT(LOAD_CONST);
}

family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
family(send, INLINE_CACHE_ENTRIES_SEND) = {
SEND,
SEND_GEN,
};
Expand Down Expand Up @@ -866,7 +866,7 @@ dummy_func(
Py_DECREF(v);
}

inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
inst(SEND_GEN, (unused/1, receiver, v -- receiver, unused)) {
PyGenObject *gen = (PyGenObject *)receiver;
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
Py_TYPE(gen) != &PyCoro_Type, SEND);
Expand Down
Loading

0 comments on commit 1670729

Please sign in to comment.