We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e274c28 commit 5261eccCopy full SHA for 5261ecc
Python/ceval_macros.h
@@ -142,7 +142,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
142
/* The integer overflow is checked by an assertion below. */
143
// TODO change this calculation when interpreter is bb aware.
144
#define INSTR_OFFSET() ((int)(next_instr - \
145
- (frame->f_code->_tier2_info == NULL ? _PyCode_CODE(frame->f_code) : frame->f_code->_tier2_info->_bb_space->u_code)))
+ (frame->is_tier2 && frame->f_code->_tier2_info != NULL ? frame->f_code->_tier2_info->_bb_space->u_code : _PyCode_CODE(frame->f_code))))
146
#define NEXTOPARG() do { \
147
_Py_CODEUNIT word = *next_instr; \
148
opcode = word.op.code; \
0 commit comments