From 031f320aa0cad0327ae509ea2d68dea5687f3e5f Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 23 Oct 2024 11:28:35 +0100 Subject: [PATCH] Update optimizer --- Python/optimizer_analysis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c index 6a92a0be025295..7ff0c8207e1a68 100644 --- a/Python/optimizer_analysis.c +++ b/Python/optimizer_analysis.c @@ -296,7 +296,8 @@ remove_globals(_PyInterpreterFrame *frame, _PyUOpInstruction *buffer, } break; } - case _RETURN_VALUE: + case _RETURN_VALUE_FUNC: + case _RETURN_VALUE_GEN: { builtins_watched >>= 1; globals_watched >>= 1;