Skip to content

Commit 1670729

Browse files
authored
gh-87849: fix SEND specialization family definition (GH-104268)
1 parent e629ab6 commit 1670729

File tree

3 files changed

+177
-176
lines changed

3 files changed

+177
-176
lines changed

Python/bytecodes.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ dummy_func(
813813
PREDICT(LOAD_CONST);
814814
}
815815

816-
family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
816+
family(send, INLINE_CACHE_ENTRIES_SEND) = {
817817
SEND,
818818
SEND_GEN,
819819
};
@@ -866,7 +866,7 @@ dummy_func(
866866
Py_DECREF(v);
867867
}
868868

869-
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
869+
inst(SEND_GEN, (unused/1, receiver, v -- receiver, unused)) {
870870
PyGenObject *gen = (PyGenObject *)receiver;
871871
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
872872
Py_TYPE(gen) != &PyCoro_Type, SEND);

0 commit comments

Comments
 (0)