Properly report intrinsic fields (dotnet/corertdotnet/coreclr#6602)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 22 Nov 2018 16:01:17 +0000 (17:01 +0100)
committerJan Kotas <jkotas@microsoft.com>
Fri, 30 Nov 2018 06:41:32 +0000 (22:41 -0800)
commit19c4b41b541a98de53796dc564d7aaa082702080
treedf166bc16e74cb4beaf86180f04fa959d67fca89
parentc92551d1beac8e6b2753cb2a259394646d475875
Properly report intrinsic fields (dotnet/corertdotnet/coreclr#6602)

* Properly report intrinsic fields

We were hitting an assert in RyuJIT because we were reporting IntPtr.Zero as an intrinsic even if we were not trying to `CORINFO_ACCESS_GET`.

I fixed that part and also went ahead to port the rest of getFieldIntrinsic from CoreCLR. We'll need this anyway.

* Add intrinsic fields

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/e6e582cfca205692ef4e0cb9300abc6c9abab9e6
src/libraries/System.Private.CoreLib/src/System/BitConverter.cs