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:
parent
da81d5c9b3
commit
45a0f774c7
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue