Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49fb75c

Browse files
authoredMar 21, 2025··
gh-131238: Add missing pycore_function.h includes for JIT compiler (#131571)
1 parent d9411ae commit 49fb75c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
 

‎Python/jit.c

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "pycore_dict.h"
1111
#include "pycore_floatobject.h"
1212
#include "pycore_frame.h"
13+
#include "pycore_function.h"
1314
#include "pycore_interpframe.h"
1415
#include "pycore_intrinsics.h"
1516
#include "pycore_list.h"

‎Python/optimizer.c

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "pycore_backoff.h"
88
#include "pycore_bitutils.h" // _Py_popcount32()
99
#include "pycore_code.h" // _Py_GetBaseCodeUnit
10+
#include "pycore_function.h" // _PyFunction_LookupByVersion()
1011
#include "pycore_interpframe.h"
1112
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1213
#include "pycore_opcode_metadata.h" // _PyOpcode_OpName[]

‎Tools/jit/template.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
#include "pycore_backoff.h"
44
#include "pycore_call.h"
5-
#include "pycore_ceval.h"
65
#include "pycore_cell.h"
6+
#include "pycore_ceval.h"
77
#include "pycore_code.h"
8+
#include "pycore_descrobject.h"
89
#include "pycore_dict.h"
9-
#include "pycore_floatobject.h"
1010
#include "pycore_emscripten_signal.h"
11+
#include "pycore_floatobject.h"
1112
#include "pycore_frame.h"
13+
#include "pycore_function.h"
1214
#include "pycore_genobject.h"
1315
#include "pycore_interpframe.h"
1416
#include "pycore_intrinsics.h"
@@ -22,7 +24,6 @@
2224
#include "pycore_range.h"
2325
#include "pycore_setobject.h"
2426
#include "pycore_sliceobject.h"
25-
#include "pycore_descrobject.h"
2627
#include "pycore_stackref.h"
2728
#include "pycore_tuple.h"
2829
#include "pycore_unicodeobject.h"

0 commit comments

Comments
 (0)
Please sign in to comment.