diff options
author | Nadeshiko Manju <me@manjusaka.me> | 2025-04-09 00:12:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 09:12:09 -0700 |
commit | d753d8aed738a4a2adedc24263af64d6f7051b4a (patch) | |
tree | f1170a03f2cdd2b07cc7bbe0b7f2408255d16539 /Python/optimizer_cases.c.h | |
parent | 71009cb835f9fa37647b0f2f7dcc0d6ca8aa36b6 (diff) | |
download | cpython-d753d8aed738a4a2adedc24263af64d6f7051b4a.tar.gz cpython-d753d8aed738a4a2adedc24263af64d6f7051b4a.zip |
GH-131798: Narrow the result of _CONTAINS_OP_DICT to bool in the JIT (GH-132269)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Diffstat (limited to 'Python/optimizer_cases.c.h')
-rw-r--r-- | Python/optimizer_cases.c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h index 160d09ca7c5..0df52e65443 100644 --- a/Python/optimizer_cases.c.h +++ b/Python/optimizer_cases.c.h @@ -1292,9 +1292,9 @@ } case _CONTAINS_OP_DICT: { - JitOptSymbol *b; - b = sym_new_not_null(ctx); - stack_pointer[-2] = b; + JitOptSymbol *res; + res = sym_new_type(ctx, &PyBool_Type); + stack_pointer[-2] = res; stack_pointer += -1; assert(WITHIN_STACK_BOUNDS()); break; |