mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed assert with methodNum -2 (ambiguous)
This commit is contained in:
parent
f595434086
commit
4054a67ee1
1 changed files with 5 additions and 2 deletions
|
@ -6778,8 +6778,11 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
|
||||||
BfMethodInstance* declaringMethodInstance = (BfMethodInstance*)entry.mDeclaringMethod;
|
BfMethodInstance* declaringMethodInstance = (BfMethodInstance*)entry.mDeclaringMethod;
|
||||||
if ((declaringMethodInstance != NULL) && (declaringMethodInstance->mMethodInstanceGroup->IsImplemented()) && (declaringMethodInstance->mIsReified))
|
if ((declaringMethodInstance != NULL) && (declaringMethodInstance->mMethodInstanceGroup->IsImplemented()) && (declaringMethodInstance->mIsReified))
|
||||||
{
|
{
|
||||||
BF_ASSERT(entry.mImplementingMethod.mTypeInstance->mMethodInstanceGroups[entry.mImplementingMethod.mMethodNum].IsImplemented());
|
if (entry.mImplementingMethod.mMethodNum >= 0)
|
||||||
BF_ASSERT(entry.mImplementingMethod.mTypeInstance->mMethodInstanceGroups[entry.mImplementingMethod.mMethodNum].mDefault->mIsReified);
|
{
|
||||||
|
BF_ASSERT(entry.mImplementingMethod.mTypeInstance->mMethodInstanceGroups[entry.mImplementingMethod.mMethodNum].IsImplemented());
|
||||||
|
BF_ASSERT(entry.mImplementingMethod.mTypeInstance->mMethodInstanceGroups[entry.mImplementingMethod.mMethodNum].mDefault->mIsReified);
|
||||||
|
}
|
||||||
BfMethodInstance* methodInstance = (BfMethodInstance*)entry.mImplementingMethod;
|
BfMethodInstance* methodInstance = (BfMethodInstance*)entry.mImplementingMethod;
|
||||||
if ((methodInstance != NULL) && (!methodInstance->mMethodDef->mIsAbstract))
|
if ((methodInstance != NULL) && (!methodInstance->mMethodDef->mIsAbstract))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue