From: Guido van Rossum Date: Tue, 27 Jun 2023 14:02:51 +0000 (-0700) Subject: gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131) X-Git-Tag: v3.13.0a1~1630 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb578a0c304dffe43bb28b36b2b1c9153c78b659;p=thirdparty%2FPython%2Fcpython.git gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131) --- diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 0d41ef5a14ce..f5c78fc65e17 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -264,11 +264,12 @@ GETITEM(PyObject *v, Py_ssize_t i) { #define UPDATE_MISS_STATS(INSTNAME) ((void)0) #endif +// NOTE: in the uops version, opcode may be > 255 #define DEOPT_IF(COND, INSTNAME) \ if ((COND)) { \ /* This is only a single jump on release builds! */ \ UPDATE_MISS_STATS((INSTNAME)); \ - assert(_PyOpcode_Deopt[opcode] == (INSTNAME)); \ + assert(opcode >= 256 || _PyOpcode_Deopt[opcode] == (INSTNAME)); \ GO_TO_INSTRUCTION(INSTNAME); \ }