mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed invalid FinishInit call during ignored method declaration
This commit is contained in:
parent
9f0295013b
commit
2c00929751
1 changed files with 3 additions and 3 deletions
|
@ -3774,7 +3774,7 @@ void BfModule::ResolveConstField(BfTypeInstance* typeInstance, BfFieldInstance*
|
|||
}
|
||||
|
||||
if ((constValue) && (fieldInstance->mConstIdx == -1))
|
||||
{
|
||||
{
|
||||
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCurTypeInstance, typeInstance);
|
||||
CurrentAddToConstHolder(constValue);
|
||||
fieldInstance->mConstIdx = constValue.mId;
|
||||
|
@ -20518,8 +20518,8 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
|||
BF_ASSERT(mContext->mResolvingVarField);
|
||||
isTemporaryFunc = true;
|
||||
}
|
||||
|
||||
if (mAwaitingInitFinish)
|
||||
|
||||
if ((mAwaitingInitFinish) && (!mBfIRBuilder->mIgnoreWrites))
|
||||
FinishInit();
|
||||
|
||||
auto typeInstance = mCurTypeInstance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue