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:
parent
96436ad825
commit
27ee2a10ac
1 changed files with 12 additions and 9 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue