Skip to content

Commit

Permalink
Address Guido's review
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 6, 2023
1 parent bc251b5 commit 83d8829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/instrumentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ initialize_tools(PyCodeObject *code)
for (int i = 0; i < code_len; i++) {
_Py_CODEUNIT *instr = &_PyCode_CODE(code)[i];
int opcode = instr->op.code;
assert(opcode != ENTER_EXECUTOR);
if (opcode == INSTRUMENTED_LINE) {
opcode = code->_co_monitoring->lines[i].original_opcode;
}
Expand Down

0 comments on commit 83d8829

Please sign in to comment.