GcInfo: Don't use slim header for struct-returns
authorSwaroop Sridhar <swaroops@microsoft.com>
Thu, 25 Aug 2016 01:53:42 +0000 (18:53 -0700)
committerSwaroop Sridhar <swaroops@microsoft.com>
Thu, 25 Aug 2016 02:41:43 +0000 (19:41 -0700)
commit245843fef66eba9502071ca2aba13a04781842e9
treeb8f2e02168f6348dc39e06587c6c169c795ba443
parent7b6033145e0a54f7e059f9db5f88d9044a17d34c
GcInfo: Don't use slim header for struct-returns

This checkin has two changes:
1) Add a check to ensure that methods with struct-returns are
use the fat header which encodes ReturnKind in 4 bits.
2) Fix a bug in GetReturnKind().

Commit migrated from https://github.com/dotnet/coreclr/commit/a12ba4633d0fea6792fcb73ed363f49e336f3f62
src/coreclr/src/gcinfo/gcinfoencoder.cpp
src/coreclr/src/inc/gcinfotypes.h
src/coreclr/src/vm/threadsuspend.cpp