8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27102b2 commit 9827030Copy full SHA for 9827030
Python/compile.c
@@ -8644,9 +8644,6 @@ assemble(struct compiler *c, int addNone)
8644
if (optimize_cfg(g, consts, c->c_const_cache)) {
8645
goto error;
8646
}
8647
- if (trim_unused_consts(g->g_entryblock, consts)) {
8648
- goto error;
8649
- }
8650
if (duplicate_exits_without_lineno(g) < 0) {
8651
8652
@@ -8682,6 +8679,9 @@ assemble(struct compiler *c, int addNone)
8682
8679
/* Can't modify the bytecode after computing jump offsets. */
8683
8680
assemble_jump_offsets(g->g_entryblock);
8684
8681
+ if (trim_unused_consts(g->g_entryblock, consts)) {
+ goto error;
+ }
8685
8686
/* Create assembler */
8687
if (!assemble_init(&a, c->u->u_firstlineno))
0 commit comments