From 5cfdc2d35f46be69edf47d807f5e3533670262ee Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Thu, 7 Sep 2023 13:45:23 +0100 Subject: [PATCH] replace assignment by assertion --- Python/instrumentation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/instrumentation.c b/Python/instrumentation.c index acc3278d50a60a..3f89e896836fc7 100644 --- a/Python/instrumentation.c +++ b/Python/instrumentation.c @@ -1125,7 +1125,7 @@ _Py_Instrumentation_GetLine(PyCodeObject *code, int index) int _Py_call_instrumentation_line(PyThreadState *tstate, _PyInterpreterFrame* frame, _Py_CODEUNIT *instr, _Py_CODEUNIT *prev) { - frame->prev_instr = instr; + assert(frame->prev_instr == instr); PyCodeObject *code = _PyFrame_GetCode(frame); assert(is_version_up_to_date(code, tstate->interp)); assert(instrumentation_cross_checks(tstate->interp, code));