Skip to content

Commit 88b7f62

Browse files
committed
gh-133258: fix crash in test_index
1 parent ad2f088 commit 88b7f62

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

Include/internal/pycore_opcode_metadata.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.

Include/internal/pycore_uop_metadata.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.

Python/bytecodes.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,11 +916,10 @@ dummy_func(
916916
assert(PyList_CheckExact(list));
917917

918918
PyObject *res_o = _PyList_SliceSubscript(list, sub);
919-
DEOPT_IF(res_o == NULL);
920-
STAT_INC(BINARY_OP, hit);
921-
res = PyStackRef_FromPyObjectSteal(res_o);
922919
STAT_INC(BINARY_OP, hit);
923920
DECREF_INPUTS();
921+
ERROR_IF(res_o == NULL);
922+
res = PyStackRef_FromPyObjectSteal(res_o);
924923
}
925924

926925
macro(BINARY_OP_SUBSCR_STR_INT) =

Python/executor_cases.c.h

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)