The Jit doesn't handle certain uses of field addresses correctly #77636
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
bug
Milestone
Reproduction:
Compile and run.
Expected result:
NullReferenceException
is thrown.Actual result:
AccessViolationException
is thrown.Cause: the morphing context used for checking whether an explicit null check is required has fairly non-obvious propagation rules. In particular, it does not get "reset" for arbitrary users, but passed as-is.
The text was updated successfully, but these errors were encountered: