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 0dadfba commit 04991a2Copy full SHA for 04991a2
Python/instrumentation.c
@@ -2912,7 +2912,7 @@ branchesiter_next(branchesiterator *bi)
2912
{
2913
int offset = bi->bi_offset;
2914
while (offset < Py_SIZE(bi->bi_code)) {
2915
- _Py_CODEUNIT inst = _PyCode_CODE(bi->bi_code)[offset];
+ _Py_CODEUNIT inst = _Py_GetBaseCodeUnit(bi->bi_code, offset);
2916
int next_offset = offset + _PyInstruction_GetLength(bi->bi_code, offset);
2917
int event = EVENT_FOR_OPCODE[inst.op.code];
2918
if (event == PY_MONITORING_EVENT_BRANCH_TAKEN) {
0 commit comments