Skip to content

Commit f15d1c0

Browse files
committed
undo uninitialize change
1 parent b996b81 commit f15d1c0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Python/flowgraph.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3784,18 +3784,16 @@ _PyCfg_OptimizeCodeUnit(cfg_builder *g, PyObject *consts, PyObject *const_cache,
37843784
return ERROR;
37853785
}
37863786
}
3787-
3788-
RETURN_IF_ERROR(
3789-
add_checks_for_loads_of_uninitialized_variables(
3790-
g->g_entryblock, nlocals, nparams));
3791-
37923787
int ret = optimize_cfg(g, consts, const_cache, consts_index, firstlineno);
37933788

37943789
_Py_hashtable_destroy(consts_index);
37953790

37963791
RETURN_IF_ERROR(ret);
37973792

37983793
RETURN_IF_ERROR(remove_unused_consts(g->g_entryblock, consts));
3794+
RETURN_IF_ERROR(
3795+
add_checks_for_loads_of_uninitialized_variables(
3796+
g->g_entryblock, nlocals, nparams));
37993797
RETURN_IF_ERROR(insert_superinstructions(g));
38003798

38013799
RETURN_IF_ERROR(push_cold_blocks_to_end(g));

0 commit comments

Comments
 (0)