Skip to content

Commit 8fd8bc4

Browse files
committed
[3.11] pythonGH-93516: Drop broken assert, fixes pythonGH-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[...]``.
1 parent aaa85b5 commit 8fd8bc4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/ceval.c

-4
Original file line numberDiff line numberDiff line change
@@ -5611,10 +5611,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
56115611
if (tstate->tracing == 0 &&
56125612
INSTR_OFFSET() >= frame->f_code->_co_firsttraceable
56135613
) {
5614-
assert(
5615-
_PyOpcode_Deopt[first_instr[frame->f_code->_co_firsttraceable]]
5616-
== RESUME
5617-
);
56185614
int instr_prev = _PyInterpreterFrame_LASTI(frame);
56195615
frame->prev_instr = next_instr;
56205616
TRACING_NEXTOPARG();

0 commit comments

Comments
 (0)