Skip to content

Commit d490347

Browse files
committed
Revert the _LOAD_SMALL_INT stuff.
1 parent 0e20c44 commit d490347

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,7 @@ dummy_func(void) {
528528
}
529529

530530
op(_LOAD_SMALL_INT, (-- value)) {
531-
PyObject *val = PyLong_FromLong(oparg);
532-
assert(val);
533-
assert(_Py_IsImmortal(val));
534-
REPLACE_OP(this_instr, _LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)val);
531+
PyObject *val = PyLong_FromLong(this_instr->oparg);
535532
value = sym_new_const(ctx, val);
536533
}
537534

0 commit comments

Comments
 (0)