1
0
Fork 0
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:
Brian Fiete 2019-09-26 08:28:45 -07:00
parent d62b777197
commit 5b34fb1948

View file

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