mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed some module mutability issues
This commit is contained in:
parent
adf46175cf
commit
230b71cecb
2 changed files with 15 additions and 4 deletions
|
@ -4984,6 +4984,11 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance)
|
|||
BF_ASSERT(defaultMethod != NULL);
|
||||
if (methodInstance->mMethodInstanceGroup->mOnDemandKind == BfMethodOnDemandKind_Decl_AwaitingReference)
|
||||
{
|
||||
if ((defaultMethod->mIsReified) && (!defaultMethod->mDeclModule->mIsModuleMutable))
|
||||
{
|
||||
defaultMethod->mDeclModule->PrepareForIRWriting(methodInstance->GetOwner());
|
||||
}
|
||||
|
||||
AddMethodToWorkList(defaultMethod);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue