Make FindOrCreateAssociatedMethodDesc throw a type load exception instead of an AV, which can't be handled by EX_TRY/EX_CATCH on Unix systems.
// Some callers pass a pExactMT that is a subtype of a parent type of pDefMD.
// Find the actual exact parent of pDefMD.
pExactMT = pDefMD->GetExactDeclaringType(pExactMT);
- _ASSERTE(pExactMT != NULL);
+ if (pExactMT == NULL)
+ {
+ _ASSERTE(false);
+ COMPlusThrowHR(COR_E_TYPELOAD);
+ }
if (pDefMD->HasClassOrMethodInstantiation() || !methodInst.IsEmpty())
{