Skip to content

Commit 47b2995

Browse files
committed
Add application example
1 parent 11cf8ec commit 47b2995

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/flowgraph.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,8 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
14951495
if (opcode == nextop &&
14961496
oparg == bb->b_instr[i+1].i_oparg &&
14971497
bb->b_instr[i].i_loc.lineno == bb->b_instr[i+1].i_loc.lineno) {
1498+
assert(OPCODE_NO_EXCEPTION(opcode));
1499+
assert(OPCODE_NO_EXCEPTION(nextop));
14981500
bb->b_instr[i].i_opcode = POP_TOP;
14991501
bb->b_instr[i].i_oparg = 0;
15001502
}

0 commit comments

Comments
 (0)