diff options
author | Fadi Hanna <fadim@microsoft.com> | 2019-04-05 14:05:17 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-04-05 14:05:17 -0700 |
commit | 5b9db5fcd995b52fda09aff38ae42e75f48f8dfa (patch) | |
tree | 19fa312a6996ab8ec031435f9e4871c0ebae12ce /src/vm/methodtable.cpp | |
parent | 552d72db3b73ef48ae930d5a87d24f7dac1d2ac7 (diff) | |
download | coreclr-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.cpp | 3 |
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; } |