Skip to content

Fix incorrect CoercedConstantValue<ssize_t> usages #128769

@EgorBo

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.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions