mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixing broken dll imports
This commit is contained in:
parent
d62b777197
commit
5b34fb1948
1 changed files with 4 additions and 3 deletions
|
@ -4105,12 +4105,13 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!methodInstance->mIRFunction) && (methodInstance->mIsReified) && (!methodInstance->mIsUnspecialized))
|
if ((!methodInstance->mIRFunction) && (methodInstance->mIsReified) && (!methodInstance->mIsUnspecialized) &&
|
||||||
|
(methodInstance->GetImportCallKind() == BfImportCallKind_None))
|
||||||
{
|
{
|
||||||
if (!mIsModuleMutable)
|
if (!mIsModuleMutable)
|
||||||
PrepareForIRWriting(methodInstance->GetOwner());
|
PrepareForIRWriting(methodInstance->GetOwner());
|
||||||
|
|
||||||
BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline);
|
BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline);
|
||||||
methodInstance->mIRFunction = func;
|
methodInstance->mIRFunction = func;
|
||||||
mFuncReferences[methodInstance] = func;
|
mFuncReferences[methodInstance] = func;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue