Properly report intrinsic fields (dotnet/corert#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)
commite6e582cfca205692ef4e0cb9300abc6c9abab9e6
tree52f71239ca14a69b37c75f6fc2312d5f6fbc2de1
parenta22f526040cebe5c721adb0eafd4f39dae5faac1
Properly report intrinsic fields (dotnet/corert#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>
src/System.Private.CoreLib/shared/System/BitConverter.cs