Fix issue 23713: handle TypeDesc field handles (#23767)
authorFadi Hanna <fadim@microsoft.com>
Fri, 5 Apr 2019 21:05:17 +0000 (14:05 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 5 Apr 2019 21:05:17 +0000 (14:05 -0700)
src/vm/methodtable.cpp

index 3e228ee..1603484 100644 (file)
@@ -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;
     }