1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +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()); PrepareForIRWriting(methodInstance->GetOwner());
BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline); BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline);
methodInstance->mIRFunction = func; if (func)
mFuncReferences[methodInstance] = func; {
methodInstance->mIRFunction = func;
mFuncReferences[methodInstance] = func;
}
} }
BF_ASSERT(methodInstance->mDeclModule == this); BF_ASSERT(methodInstance->mDeclModule == this);