From 5b34fb1948a27e6d68ce431e6c76389328c92758 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 26 Sep 2019 08:28:45 -0700 Subject: [PATCH] Fixing broken dll imports --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 189deb6a..2e2099da 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -4105,12 +4105,13 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance) return; } - if ((!methodInstance->mIRFunction) && (methodInstance->mIsReified) && (!methodInstance->mIsUnspecialized)) + if ((!methodInstance->mIRFunction) && (methodInstance->mIsReified) && (!methodInstance->mIsUnspecialized) && + (methodInstance->GetImportCallKind() == BfImportCallKind_None)) { if (!mIsModuleMutable) PrepareForIRWriting(methodInstance->GetOwner()); - - BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline); + + BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline); methodInstance->mIRFunction = func; mFuncReferences[methodInstance] = func; }