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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy