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,16 +6555,19 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
|
||||||
origVTable = typeInstance->mVirtualMethodTable;
|
origVTable = typeInstance->mVirtualMethodTable;
|
||||||
|
|
||||||
BfMethodInstance* declMethodInstance = entry.mDeclaringMethod;
|
BfMethodInstance* declMethodInstance = entry.mDeclaringMethod;
|
||||||
if ((mIsComptimeModule) || (typeInstance->IsTypeMemberAccessible(declMethodInstance->mMethodDef->mDeclaringType, mProject)))
|
if (declMethodInstance != NULL)
|
||||||
{
|
{
|
||||||
// Prepare to reslot...
|
if ((mIsComptimeModule) || (typeInstance->IsTypeMemberAccessible(declMethodInstance->mMethodDef->mDeclaringType, mProject)))
|
||||||
entry.mImplementingMethod = entry.mDeclaringMethod;
|
{
|
||||||
reslotNames.Add(declMethodInstance->mMethodDef->mName);
|
// Prepare to reslot...
|
||||||
}
|
entry.mImplementingMethod = entry.mDeclaringMethod;
|
||||||
else
|
reslotNames.Add(declMethodInstance->mMethodDef->mName);
|
||||||
{
|
}
|
||||||
// Decl isn't accessible, null out entry
|
else
|
||||||
entry.mImplementingMethod = BfMethodRef();
|
{
|
||||||
|
// Decl isn't accessible, null out entry
|
||||||
|
entry.mImplementingMethod = BfMethodRef();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue