mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed some extension dtor null issues
This commit is contained in:
parent
9d125eaaf2
commit
77ce6a4175
2 changed files with 2 additions and 2 deletions
|
@ -5908,7 +5908,7 @@ void BfCompiler::PopulateReified()
|
|||
if ((methodDef->mIsOverride) && (methodDef->mParams.mSize == declaringMethod->mMethodDef->mParams.mSize))
|
||||
{
|
||||
auto implMethod = typeInst->mModule->GetRawMethodInstance(typeInst, methodDef);
|
||||
if (typeInst->mModule->CompareMethodSignatures(declaringMethod, implMethod))
|
||||
if ((implMethod != NULL) && (typeInst->mModule->CompareMethodSignatures(declaringMethod, implMethod)))
|
||||
{
|
||||
if ((implMethod != NULL) && ((!implMethod->mMethodInstanceGroup->IsImplemented()) || (!implMethod->mIsReified)))
|
||||
{
|
||||
|
|
|
@ -5960,7 +5960,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
|
|||
if (typeInstance->mDefineState >= BfTypeDefineState_DefinedAndMethodsSlotted)
|
||||
{
|
||||
BfMethodInstance* methodInstance = typeInstance->mVirtualMethodTable[mCompiler->GetVTableMethodOffset() + 0].mImplementingMethod;
|
||||
if (methodInstance->GetOwner() != mContext->mBfObjectType)
|
||||
if ((methodInstance != NULL) && (methodInstance->GetOwner() != mContext->mBfObjectType))
|
||||
typeFlags |= BfTypeFlags_HasDestructor;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue