Fix build break after rebase
authorYi Zhang (CLR) <yzha@microsoft.com>
Sun, 11 Jun 2017 00:38:35 +0000 (17:38 -0700)
committerYi Zhang (CLR) <yzha@microsoft.com>
Wed, 19 Jul 2017 18:16:56 +0000 (11:16 -0700)
src/vm/methodtable.cpp
src/vm/methodtablebuilder.cpp

index 42cb886..404d903 100644 (file)
@@ -7021,16 +7021,17 @@ BOOL MethodTable::FindDefaultMethod(
                             MethodDesc *pMD = methodIt.GetMethodDesc();
                             if (pMD->IsVirtual() && !pMD->IsAbstract() && pMD->IsMethodImpl())
                             {
-                                MethodImpl *pImpl = pMD->GetMethodImpl();
-                                MethodDesc **pImplMDs = pImpl->GetImplementedMDs();
-                                for (DWORD i = 0; i < pImpl->GetSize(); ++i)
+                                MethodImpl::Iterator it(pMD);
+                                while (it.IsValid())
                                 {
-                                    if (pImplMDs[i] == pInterfaceMD)
+                                    if (it.GetMethodDesc() == pInterfaceMD)
                                     {
                                         pCurMD = pMD;
                                         break;
                                     }
-                                }
+
+                                    it.Next();
+                                } 
                             }
                         }
                     }
index b3aed49..2f76d7f 100644 (file)
@@ -6192,7 +6192,7 @@ MethodTableBuilder::PlaceMethodImpls()
             {
                 // We implement this slot, record it
                 slots[slotIndex] = pCurDeclMethod->GetSlotIndex();
-                replaced[slotIndex] = pCurDeclMethod->GetMethodDesc();
+                replaced[slotIndex].SetValue(pCurDeclMethod->GetMethodDesc());
 
                 // increment the counter
                 slotIndex++;
@@ -6216,7 +6216,7 @@ MethodTableBuilder::PlaceMethodImpls()
             {
                 // We implement this slot, record it
                 slots[slotIndex] = pCurDeclMethod->GetSlotIndex();
-                replaced[slotIndex] = pCurDeclMethod->GetMethodDesc();
+                replaced[slotIndex].SetValue(pCurDeclMethod->GetMethodDesc());
 
                 // increment the counter
                 slotIndex++;