mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed enum with extension with ToString override
This commit is contained in:
parent
38d2eff3f6
commit
f09a9b41f1
6 changed files with 25 additions and 14 deletions
|
@ -20225,7 +20225,7 @@ void BfModule::SetupIRFunction(BfMethodInstance* methodInstance, StringImpl& man
|
|||
if ((methodDef->mIsOverride) && (mCurTypeInstance->mTypeDef->mIsCombinedPartial))
|
||||
{
|
||||
BfLogSysM("Function collision from inner override erased prevFunc %p: %d\n", methodInstance, prevFunc.mId);
|
||||
mBfIRBuilder->Func_EraseFromParent(prevFunc);
|
||||
mBfIRBuilder->Func_SafeRename(prevFunc);
|
||||
}
|
||||
else if (methodDef->mIsExtern)
|
||||
{
|
||||
|
@ -20247,7 +20247,7 @@ void BfModule::SetupIRFunction(BfMethodInstance* methodInstance, StringImpl& man
|
|||
else
|
||||
{
|
||||
BfLogSysM("Function collision erased prevFunc %p: %d\n", methodInstance, prevFunc.mId);
|
||||
mBfIRBuilder->Func_EraseFromParent(prevFunc);
|
||||
mBfIRBuilder->Func_SafeRename(prevFunc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue