1
0
Fork 0
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:
Brian Fiete 2020-05-11 10:14:27 -07:00
parent 5928ac4e7e
commit b0fbc87d31

View file

@ -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);