Skip to content

Analyzer doesn't handle intrinsics with overrides #120475

@sbomer

Description

@sbomer

In the analyzer, calls to override methods are represented as such (instead of being seen as calls to the base virtual like in IL most of the time). This creates problems for intrinsics which are virtual - it means the intrinsic handling doesn't kick in for overrides of virtual intrinsic methods. It's unclear to me whether it should, because overrides might not satisfy the contract that is assumed by the intrinsic handling.

This produces a warning in runtime on

.

Here, BaseType is getting called not on Type, but on RuntimeTypeInfo which is derived from Type.

Parent Item

Metadata

Metadata

Assignees

Labels

area-Tools-ILLink.NET linker development as well as trimming analyzers

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions