summaryrefslogtreecommitdiff
path: root/src/vm/threadsuspend.cpp
diff options
context:
space:
mode:
authorSwaroop Sridhar <swaroops@microsoft.com>2016-08-24 18:53:42 -0700
committerSwaroop Sridhar <swaroops@microsoft.com>2016-08-24 19:41:43 -0700
commita12ba4633d0fea6792fcb73ed363f49e336f3f62 (patch)
tree945cfd971c7723663441a14b5198871e6cd68917 /src/vm/threadsuspend.cpp
parent9426f7ed702e5b8cbc4ffb0ad89a2ad7a448c56c (diff)
downloadcoreclr-a12ba4633d0fea6792fcb73ed363f49e336f3f62.tar.gz
coreclr-a12ba4633d0fea6792fcb73ed363f49e336f3f62.tar.bz2
coreclr-a12ba4633d0fea6792fcb73ed363f49e336f3f62.zip
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().
Diffstat (limited to 'src/vm/threadsuspend.cpp')
-rw-r--r--src/vm/threadsuspend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/threadsuspend.cpp b/src/vm/threadsuspend.cpp
index 5785ad7f13..cd4203b9d0 100644
--- a/src/vm/threadsuspend.cpp
+++ b/src/vm/threadsuspend.cpp
@@ -7286,7 +7286,7 @@ ReturnKind GetReturnKind(Thread *pThread, EECodeInfo *codeInfo)
if (gcInfoToken.IsReturnKindAvailable())
{
GcInfoDecoder gcInfoDecoder(gcInfoToken, DECODE_RETURN_KIND);
- ReturnKind returnKind = gcInfoDecoder.GetReturnKind();
+ returnKind = gcInfoDecoder.GetReturnKind();
}
#endif // _TARGET_X86_