Skip to content

Commit

Permalink
Fix createdump fault in diagnostic tests (#46554)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 authored Jan 5, 2021
1 parent dc874bc commit 65bcfd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coreclr/debug/daccess/enummem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,12 @@ HRESULT ClrDataAccess::DumpManagedExcepObject(CLRDataEnumMemoryFlags flags, OBJE
PCODE addr = pMD->GetNativeCode();
if (addr != NULL)
{
IJitManager::MethodRegionInfo methodRegionInfo = { NULL, 0, NULL, 0 };
EECodeInfo codeInfo(addr);
codeInfo.GetMethodRegionInfo(&methodRegionInfo);
if (codeInfo.IsValid())
{
IJitManager::MethodRegionInfo methodRegionInfo = { NULL, 0, NULL, 0 };
codeInfo.GetMethodRegionInfo(&methodRegionInfo);
}
}
}

Expand Down

0 comments on commit 65bcfd0

Please sign in to comment.