Skip to content

Commit cdf427a

Browse files
committed
set location for BUILD_SET/BUILD_LIST
1 parent bdae73b commit cdf427a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/flowgraph.c

+3
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,9 @@ optimize_lists_and_sets(basicblock *bb, int i, int nextop,
14871487
else {
14881488
assert(i >= 2);
14891489
assert(instr->i_opcode == BUILD_LIST || instr->i_opcode == BUILD_SET);
1490+
1491+
INSTR_SET_LOC(&bb->b_instr[i-2], instr->i_loc);
1492+
14901493
INSTR_SET_OP1(&bb->b_instr[i-2], instr->i_opcode, 0);
14911494
INSTR_SET_OP1(&bb->b_instr[i-1], LOAD_CONST, index);
14921495
INSTR_SET_OP1(&bb->b_instr[i], instr->i_opcode == BUILD_LIST ? LIST_EXTEND : SET_UPDATE, 1);

0 commit comments

Comments
 (0)