Skip to content

Fix incorrect CoercedConstantValue<ssize_t> usages #128769

Closed

Description

@EgorBo

On 32-bit ssize_t is basically int32_t and CoercedConstantValue<ssize_t> may just truncate a TYP_LONG-typed VN constant. One obvious buggy behavior is in IsVNIntegralConstant where it may lead to any TYP_LONG to be reported as "fits into int32".

So IsVNIntegralConstant should use int64_t instead.

Activity

  1. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on May 29, 2026
  2. dotnet-policy-service commented on May 29, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  3. self-assigned this
    on May 29, 2026
  4. added this to the 11.0.0 milestone on May 29, 2026
  5. locked and limited conversation to collaborators on Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions