summaryrefslogtreecommitdiff
path: root/src/vm/methodtable.cpp
diff options
context:
space:
mode:
authorFadi Hanna <fadim@microsoft.com>2019-04-05 14:05:17 -0700
committerJan Kotas <jkotas@microsoft.com>2019-04-05 14:05:17 -0700
commit5b9db5fcd995b52fda09aff38ae42e75f48f8dfa (patch)
tree19fa312a6996ab8ec031435f9e4871c0ebae12ce /src/vm/methodtable.cpp
parent552d72db3b73ef48ae930d5a87d24f7dac1d2ac7 (diff)
downloadcoreclr-5b9db5fcd995b52fda09aff38ae42e75f48f8dfa.tar.gz
coreclr-5b9db5fcd995b52fda09aff38ae42e75f48f8dfa.tar.bz2
coreclr-5b9db5fcd995b52fda09aff38ae42e75f48f8dfa.zip
Fix issue 23713: handle TypeDesc field handles (#23767)
Diffstat (limited to 'src/vm/methodtable.cpp')
-rw-r--r--src/vm/methodtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vm/methodtable.cpp b/src/vm/methodtable.cpp
index 3e228ee47f..1603484ec6 100644
--- a/src/vm/methodtable.cpp
+++ b/src/vm/methodtable.cpp
@@ -10244,7 +10244,8 @@ static BOOL ComputeIsLayoutInCurrentVersionBubble(MethodTable* pMT)
ApproxFieldDescIterator fieldIterator(pMT, ApproxFieldDescIterator::INSTANCE_FIELDS);
for (FieldDesc *pFD = fieldIterator.Next(); pFD != NULL; pFD = fieldIterator.Next())
{
- MethodTable * pFieldMT = pFD->GetApproxFieldTypeHandleThrowing().AsMethodTable();
+ MethodTable * pFieldMT = pFD->GetApproxFieldTypeHandleThrowing().GetMethodTable();
+
if (!pFieldMT->IsLayoutInCurrentVersionBubble())
return FALSE;
}