1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +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;
BfMethodInstance* declMethodInstance = entry.mDeclaringMethod;
if (declMethodInstance != NULL)
{
if ((mIsComptimeModule) || (typeInstance->IsTypeMemberAccessible(declMethodInstance->mMethodDef->mDeclaringType, mProject)))
{
// Prepare to reslot...
@ -6568,6 +6570,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
}
}
}
}
if (!reslotNames.IsEmpty())
{