mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed issue with unreifiied module having mFuncReferences set
This commit is contained in:
parent
5928ac4e7e
commit
b0fbc87d31
1 changed files with 5 additions and 2 deletions
|
@ -4316,8 +4316,11 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance)
|
|||
PrepareForIRWriting(methodInstance->GetOwner());
|
||||
|
||||
BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline);
|
||||
methodInstance->mIRFunction = func;
|
||||
mFuncReferences[methodInstance] = func;
|
||||
if (func)
|
||||
{
|
||||
methodInstance->mIRFunction = func;
|
||||
mFuncReferences[methodInstance] = func;
|
||||
}
|
||||
}
|
||||
|
||||
BF_ASSERT(methodInstance->mDeclModule == this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue