Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/coreclr/md/enc/metamodelrw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4903,6 +4903,14 @@ CMiniMdRW::AddPropertyToPropertyMap(
IfFailGo(AddChildRowIndirectForParent(TBL_PropertyMap, PropertyMapRec::COL_PropertyList,
TBL_PropertyPtr, pmd, &pPtr));
hr = PutCol(TBL_PropertyPtr, PropertyPtrRec::COL_Property, pPtr, pd);

// Add the <property, typedef> to the property parent lookup table.
// This mirrors what AddMethodToTypeDef/AddFieldToTypeDef do for their
// respective lookup tables, and what emit.cpp:DefineProperty does.
PropertyMapRec *pPropertyMapRec;
IfFailGo(GetPropertyMapRecord(pmd, &pPropertyMapRec));
IfFailGo(AddPropertyToLookUpTable(TokenFromRid(pd, mdtProperty),
getParentOfPropertyMap(pPropertyMapRec)));
}


Expand Down Expand Up @@ -4930,6 +4938,14 @@ CMiniMdRW::AddEventToEventMap(
IfFailGo(AddChildRowIndirectForParent(TBL_EventMap, EventMapRec::COL_EventList,
TBL_EventPtr, emd, &pPtr));
hr = PutCol(TBL_EventPtr, EventPtrRec::COL_Event, pPtr, ed);

// Add the <event, typedef> to the event parent lookup table.
// This mirrors what AddMethodToTypeDef/AddFieldToTypeDef do for their
// respective lookup tables.
EventMapRec *pEventMapRec;
IfFailGo(GetEventMapRecord(emd, &pEventMapRec));
IfFailGo(AddEventToLookUpTable(TokenFromRid(ed, mdtEvent),
getParentOfEventMap(pEventMapRec)));
}
ErrExit:
return hr;
Expand Down
Loading