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 bab900a commit 9736e75Copy full SHA for 9736e75
Python/compile.c
@@ -8649,6 +8649,9 @@ assemble(struct compiler *c, int addNone)
8649
if (duplicate_exits_without_lineno(g) < 0) {
8650
goto error;
8651
}
8652
+ if (push_cold_blocks_to_end(g, code_flags) < 0) {
8653
+ goto error;
8654
+ }
8655
propagate_line_numbers(g->g_entryblock);
8656
guarantee_lineno_for_exits(g->g_entryblock, c->u->u_firstlineno);
8657
@@ -8660,9 +8663,6 @@ assemble(struct compiler *c, int addNone)
8660
8663
8661
8664
convert_exception_handlers_to_nops(g->g_entryblock);
8662
8665
- if (push_cold_blocks_to_end(g, code_flags) < 0) {
- goto error;
- }
8666
for (basicblock *b = g->g_entryblock; b != NULL; b = b->b_next) {
8667
remove_redundant_nops(b);
8668
0 commit comments