Skip to content

Commit 3e09485

Browse files
Exclude function if not collecting stats
1 parent 907c5cb commit 3e09485

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/specialize.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ _Py_Specialize_BinaryMultiply(PyObject *left, PyObject *right, _Py_CODEUNIT *ins
12361236
return 0;
12371237
}
12381238

1239-
1239+
#if COLLECT_SPECIALIZATION_STATS_DETAILED
12401240
static int
12411241
builtin_call_fail_kind(int ml_flags)
12421242
{
@@ -1258,6 +1258,7 @@ builtin_call_fail_kind(int ml_flags)
12581258
return SPEC_FAIL_BAD_CALL_FLAGS;
12591259
}
12601260
}
1261+
#endif
12611262

12621263
static int
12631264
specialize_c_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs,

0 commit comments

Comments
 (0)