mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
GH-131798: Narrow the result type of _BINARY_OP_SUBSCR_STR_INT to str in the JIT (GH-132153)
This commit is contained in:
parent
933c6653cb
commit
71009cb835
4 changed files with 27 additions and 1 deletions
2
Python/optimizer_cases.c.h
generated
2
Python/optimizer_cases.c.h
generated
|
|
@ -569,7 +569,7 @@
|
|||
|
||||
case _BINARY_OP_SUBSCR_STR_INT: {
|
||||
JitOptSymbol *res;
|
||||
res = sym_new_not_null(ctx);
|
||||
res = sym_new_type(ctx, &PyUnicode_Type);
|
||||
stack_pointer[-2] = res;
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue