From fc04e9536301bfb196fbc484fdc05e4a8dbc3e8c Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 11 Feb 2025 13:28:25 -0500 Subject: [PATCH] gh-129244: Only remove the workaround when MSVC has the bugfix --- Python/ceval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/ceval.c b/Python/ceval.c index 5f8f0ae69ef31b..1684fd7ecbdff2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -767,6 +767,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch) /* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC. */ #if (defined(_MSC_VER) && \ + (_MSC_VER < 1943) && \ defined(_Py_USING_PGO)) #define DO_NOT_OPTIMIZE_INTERP_LOOP #endif