Skip to content

Commit 1ca99ed

Browse files
authored
Manually override bytecode definition in optimizer, to avoid build error (GH-122316)
1 parent c557ae9 commit 1ca99ed

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

Python/optimizer_bytecodes.c

+8
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,14 @@ dummy_func(void) {
596596
}
597597
}
598598

599+
op(_MAYBE_EXPAND_METHOD, (callable, self_or_null, args[oparg] -- func, maybe_self, args[oparg])) {
600+
(void)callable;
601+
(void)self_or_null;
602+
(void)args;
603+
func = sym_new_not_null(ctx);
604+
maybe_self = sym_new_not_null(ctx);
605+
}
606+
599607
op(_PY_FRAME_GENERAL, (callable, self_or_null, args[oparg] -- new_frame: _Py_UOpsAbstractFrame *)) {
600608
/* The _Py_UOpsAbstractFrame design assumes that we can copy arguments across directly */
601609
(void)callable;

Python/optimizer_cases.c.h

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)