Skip to content

Commit 8af7b51

Browse files
committed
handle case there operand is set to null
1 parent 78c11e1 commit 8af7b51

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
@@ -757,7 +757,7 @@ dummy_func(void) {
757757
}
758758

759759
op(_POP_TOP_FLOAT, (value --)) {
760-
if (PyJitRef_IsBorrowed(value)) {
760+
if (PyJitRef_IsBorrowed(value) || sym_is_null(value)) {
761761
ADD_OP(_POP_TOP_NOP, 0, 0);
762762
}
763763
}

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)