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