Skip to content

Commit a36900e

Browse files
use optimize_pop_top
1 parent e9e6faf commit a36900e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ dummy_func(void) {
903903
assert(callable);
904904
bool immortal = _Py_IsImmortal(callable) || (type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE);
905905
ADD_OP(_GUARD_TYPE_VERSION, 0, type->tp_version_tag);
906-
ADD_OP(_POP_TOP, 0, 0);
906+
optimize_pop_top(ctx, this_instr, owner);
907907
ADD_OP(immortal ? _LOAD_CONST_INLINE_BORROW : _LOAD_CONST_INLINE, 0, (uintptr_t)callable);
908908
if (class_method) {
909909
ADD_OP(_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)type);

Python/optimizer_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)