Match HasLayoutMetadata to CoreCLR (dotnet/coreclr#27438)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 25 Oct 2019 19:46:08 +0000 (21:46 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Oct 2019 19:46:08 +0000 (21:46 +0200)
commit9c11ac4714a5456c0e80c54864f021527236ec82
tree1898ce3f54a445ebe07b0d197035ec2b89af5ee9
parent1778f935459bd4bf8111cdaa49607395ad2779dd
Match HasLayoutMetadata to CoreCLR (dotnet/coreclr#27438)

This caught my attention because I was messing with `IsBlittableType`.

The condition `type.BaseType.IsValueType` is never true because one can never have a type whose base type is a valuetype.

I was trying to find out where this code is coming from so I can fix it only to realize it was silently deleted in dotnet/coreclr#23015.

Commit migrated from https://github.com/dotnet/coreclr/commit/510dd30127777d85ea8831bdc474397a0b2070a8
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs