Skip to content
Closed
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
5 changes: 2 additions & 3 deletions src/coreclr/debug/daccess/request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1982,10 +1982,9 @@ ClrDataAccess::GetFieldDescData(CLRDATA_ADDRESS addr, struct DacpFieldDescData *
// drag in this data structure in minidump's case.
//
TypeHandle th = pFieldDesc->LookupFieldTypeHandle();
MethodTable *pMt = th.GetMethodTable();
if (pMt)
if (th.AsTAddr())
{
FieldDescData->MTOfType = HOST_CDADDR(th.GetMethodTable());
FieldDescData->MTOfType = HOST_CDADDR(PTR_MethodTable(th.AsTAddr()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FieldDescData->MTOfType = HOST_CDADDR(PTR_MethodTable(th.AsTAddr()));
FieldDescData->MTOfType = TO_CDADDR(th.AsTAddr());

Any reason to convert the TADDR to a pointer to convert it back to a TADDR?

}
else
{
Expand Down
Loading