Skip to content

Commit 22c8eb9

Browse files
committed
optimize_build_list_or_set_with_constants -> optimize_if_const_list_or_set
1 parent ea4413b commit 22c8eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/flowgraph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ fold_tuple_on_constants(PyObject *const_cache,
13991399
or BUILD_SET & SET_UPDATE respectively.
14001400
*/
14011401
static int
1402-
optimize_build_list_or_set_with_constants(PyObject *const_cache, cfg_instr* inst, int n, PyObject *consts)
1402+
optimize_if_const_list_or_set(PyObject *const_cache, cfg_instr* inst, int n, PyObject *consts)
14031403
{
14041404
assert(PyDict_CheckExact(const_cache));
14051405
assert(PyList_CheckExact(consts));
@@ -1813,7 +1813,7 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
18131813
case BUILD_LIST:
18141814
case BUILD_SET:
18151815
if (i >= oparg) {
1816-
if (optimize_build_list_or_set_with_constants(const_cache, inst-oparg, oparg, consts) < 0) {
1816+
if (optimize_if_const_list_or_set(const_cache, inst-oparg, oparg, consts) < 0) {
18171817
goto error;
18181818
}
18191819
}

0 commit comments

Comments
 (0)