Skip to content

Commit e3f4f8b

Browse files
committed
address review
1 parent f878d78 commit e3f4f8b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/flowgraph.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,9 +2054,7 @@ basicblock_optimize_load_const(PyObject *const_cache, basicblock *bb, PyObject *
20542054
cfg_instr *inst = &bb->b_instr[i];
20552055
if (inst->i_opcode == LOAD_CONST) {
20562056
PyObject *constant = get_const_value(inst->i_opcode, inst->i_oparg, consts);
2057-
if (maybe_instr_make_load_smallint(inst, constant, consts, const_cache)) {
2058-
assert(inst->i_opcode == LOAD_SMALL_INT);
2059-
}
2057+
(void)maybe_instr_make_load_smallint(inst, constant, consts, const_cache);
20602058
Py_DECREF(constant);
20612059
}
20622060
bool is_copy_of_load_const = (opcode == LOAD_CONST &&

0 commit comments

Comments
 (0)