Skip to content

Commit 30ffbf1

Browse files
committed
Add assert
1 parent 661629f commit 30ffbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/flowgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,8 +1314,8 @@ remove_redundant_deadstore(basicblock *bb)
13141314
if (inst->i_opcode == STORE_FAST) {
13151315
for (int j = i - 1; j >= 0; j--) {
13161316
cfg_instr *prev = &bb->b_instr[j];
1317+
assert(prev->i_loc.lineno <= inst->i_loc.lineno);
13171318
if (prev->i_loc.lineno != inst->i_loc.lineno) {
1318-
// Invariant condition: lineno is always monotonically increasing.
13191319
break;
13201320
}
13211321
if (prev->i_opcode == STORE_FAST && prev->i_oparg == inst->i_oparg) {

0 commit comments

Comments
 (0)