Fix issue with HFA altjit api
authorBruce Forstall <brucefo@microsoft.com>
Wed, 27 Sep 2017 21:42:04 +0000 (14:42 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Wed, 27 Sep 2017 21:42:04 +0000 (14:42 -0700)
commit679c23ac3acc3389c11f242c5ffea1d21d8f8a40
tree8f64ae40ca77dade12fcaac01ae2133e980dddaf
parent16235fd307578fa5360790fb4749e485f8051cba
Fix issue with HFA altjit api

One case in the Interop\ArrayMarshalling\ByValArray\MarshalArrayByValTest\MarshalArrayByValTest.cmd
test marshals an array of strings as members of a struct. The !FEATURE_HFA
code for IsHFA() needs to check for value type before calling CheckForHFA(),
which will assert if it is not a value type.

Fixes dotnet/coreclr#14196.

Commit migrated from https://github.com/dotnet/coreclr/commit/83124c7aaf7f4236e24f4c4fde3863f1736f7d47
src/coreclr/src/vm/class.cpp