diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 8a1aa2f2..b9401d1e 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -4316,8 +4316,11 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance) PrepareForIRWriting(methodInstance->GetOwner()); BfIRValue func = CreateFunctionFrom(methodInstance, false, methodInstance->mAlwaysInline); - methodInstance->mIRFunction = func; - mFuncReferences[methodInstance] = func; + if (func) + { + methodInstance->mIRFunction = func; + mFuncReferences[methodInstance] = func; + } } BF_ASSERT(methodInstance->mDeclModule == this);