From 8fd8bc4f2640b6f4881d0debe29056cee38825b3 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 29 Jun 2022 12:44:27 +0200 Subject: [PATCH] [3.11] GH-93516: Drop broken assert, fixes GH-93769 The ``assert`` is broken on big endian platforms and not present in the main branch. Drop it. Correct version would be ``_PyOpcode_Deopt[_Py_OPCODE(...)]`` instead of ``_PyOpcode_Deopt[...]``. --- Python/ceval.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 2d794837ce3d7e..00fb02718d8a37 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5611,10 +5611,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int if (tstate->tracing == 0 && INSTR_OFFSET() >= frame->f_code->_co_firsttraceable ) { - assert( - _PyOpcode_Deopt[first_instr[frame->f_code->_co_firsttraceable]] - == RESUME - ); int instr_prev = _PyInterpreterFrame_LASTI(frame); frame->prev_instr = next_instr; TRACING_NEXTOPARG();