Skip to content

Commit

Permalink
Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Aug 27, 2023
1 parent e015f14 commit 7612b8e
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 @@ -1291,6 +1291,7 @@ initialize_tools(PyCodeObject *code)
opcode = DE_INSTRUMENT[opcode];
assert(opcode != 0);
}
assert(opcode != ENTER_EXECUTOR);
opcode = _PyOpcode_Deopt[opcode];
if (opcode_has_event(opcode)) {
if (instrumented) {
Expand Down

0 comments on commit 7612b8e

Please sign in to comment.