diff options
author | Guido van Rossum <guido@python.org> | 2023-06-27 14:02:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 14:02:51 (GMT) |
commit | bb578a0c304dffe43bb28b36b2b1c9153c78b659 (patch) | |
tree | 2d1e7b9e8b9cfe5ab430049987ad94842c340569 /Python | |
parent | 0762775a15d1fb238751744872bc99c853bef6c8 (diff) | |
download | cpython-bb578a0c304dffe43bb28b36b2b1c9153c78b659.zip cpython-bb578a0c304dffe43bb28b36b2b1c9153c78b659.tar.gz cpython-bb578a0c304dffe43bb28b36b2b1c9153c78b659.tar.bz2 |
gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval_macros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 0d41ef5..f5c78fc 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); \ } |