Open
Description
There are a couple categories of issues in the JIT IR that could have been caught earlier if we ran some kind of type checking phase:
- unexpected appearance of short integer types (Tests under: BasicEventSourceTests.TestsWrite failed with "System.Reflection.MissingMetadataException" #22666)
- mismatched uses of byrefs/native ints ([Security] Use safe integer arithmetic for memory allocation #19257)
TYP_UINT
andTYP_ULONG
are invalid on nodes
We might also want to restructure the early part of the jit so we can run checks sooner...
category:implementation
theme:ir
skill-level:expert
cost:extra-large