1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed AddToWorkList issue with MethodInstanceOnly on AlwaysInclude

This commit is contained in:
Brian Fiete 2022-06-29 05:56:07 -07:00
parent da81d5c9b3
commit 45a0f774c7

View file

@ -14566,7 +14566,7 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
addToWorkList = false;
}
if ((flags & BfGetMethodInstanceFlag_MethodInstanceOnly) != 0)
if (((flags & BfGetMethodInstanceFlag_MethodInstanceOnly) != 0) && (methodInstGroup->mOnDemandKind != BfMethodOnDemandKind_AlwaysInclude))
{
addToWorkList = false;
}
@ -23068,6 +23068,11 @@ void BfModule::SetupIRFunction(BfMethodInstance* methodInstance, StringImpl& man
}
else
{
if (mangledName == "?GCMarkStaticMembers@Glfw@GLFW@bf@@SAXXZ")
{
NOP;
}
func = mBfIRBuilder->CreateFunction(funcType, BfIRLinkageType_External, mangledName);
BfLogSysM("Creating FuncId:%d %s in module %p\n", func.mId, mangledName.c_str(), this);
if (methodInstance->mAlwaysInline)