Skip to content

Commit 6b0d946

Browse files
committed
pythongh-87849: fix SEND specialization family definition
1 parent 7a7eaff commit 6b0d946

File tree

3 files changed

+178
-176
lines changed

3 files changed

+178
-176
lines changed

Python/bytecodes.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ dummy_func(
807807
PREDICT(LOAD_CONST);
808808
}
809809

810-
family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
810+
family(send, INLINE_CACHE_ENTRIES_SEND) = {
811811
SEND,
812812
SEND_GEN,
813813
};
@@ -860,7 +860,7 @@ dummy_func(
860860
Py_DECREF(v);
861861
}
862862

863-
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
863+
inst(SEND_GEN, (unused/1, receiver, v -- receiver, retval)) {
864864
PyGenObject *gen = (PyGenObject *)receiver;
865865
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
866866
Py_TYPE(gen) != &PyCoro_Type, SEND);

0 commit comments

Comments
 (0)