diff options
author | Thomas Wouters <thomas@python.org> | 2024-02-15 20:53:06 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2024-02-15 20:53:06 (GMT) |
commit | 26f23daa1ea30dea368f00c2131017cef2586adc (patch) | |
tree | 7baca7617b71747da914ebb655a6e00f46a56a00 /Python/flowgraph.c | |
parent | c08c0679055d96c0397cf128bf7cc8134538b36a (diff) | |
parent | ae460d450ab854ca66d509ef6971cfe1b6312405 (diff) | |
download | cpython-26f23daa1ea30dea368f00c2131017cef2586adc.zip cpython-26f23daa1ea30dea368f00c2131017cef2586adc.tar.gz cpython-26f23daa1ea30dea368f00c2131017cef2586adc.tar.bz2 |
Merge branch 'main' of https://github.com/python/cpython
Diffstat (limited to 'Python/flowgraph.c')
-rw-r--r-- | Python/flowgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/flowgraph.c b/Python/flowgraph.c index 1a648ed..4d9ba9e 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -2729,7 +2729,7 @@ _PyCfg_ToInstructionSequence(cfg_builder *g, _PyCompile_InstructionSequence *seq RETURN_IF_ERROR(_PyCompile_InstructionSequence_UseLabel(seq, b->b_label.id)); for (int i = 0; i < b->b_iused; i++) { cfg_instr *instr = &b->b_instr[i]; - if (OPCODE_HAS_JUMP(instr->i_opcode)) { + if (OPCODE_HAS_JUMP(instr->i_opcode) || is_block_push(instr)) { instr->i_oparg = instr->i_target->b_label.id; } RETURN_IF_ERROR( |