1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

declMethodInstance null check

This commit is contained in:
Brian Fiete 2024-03-26 07:31:12 -04:00
parent 96436ad825
commit 27ee2a10ac

View file

@ -6555,6 +6555,8 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
origVTable = typeInstance->mVirtualMethodTable; origVTable = typeInstance->mVirtualMethodTable;
BfMethodInstance* declMethodInstance = entry.mDeclaringMethod; BfMethodInstance* declMethodInstance = entry.mDeclaringMethod;
if (declMethodInstance != NULL)
{
if ((mIsComptimeModule) || (typeInstance->IsTypeMemberAccessible(declMethodInstance->mMethodDef->mDeclaringType, mProject))) if ((mIsComptimeModule) || (typeInstance->IsTypeMemberAccessible(declMethodInstance->mMethodDef->mDeclaringType, mProject)))
{ {
// Prepare to reslot... // Prepare to reslot...
@ -6568,6 +6570,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
} }
} }
} }
}
if (!reslotNames.IsEmpty()) if (!reslotNames.IsEmpty())
{ {