diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 5d5258c6..ad03db76 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -4367,7 +4367,11 @@ void BfCompiler::GetSymbolReferences() }; for (auto rebuildTypeInst : rebuildTypeInstList) - { + { + // These never have a definition. Also note that BfGenericDelegateType does not have proper generic defs + if (rebuildTypeInst->IsOnDemand()) + continue; + auto context = mContext; auto module = context->mScratchModule; SetAndRestoreValue prevTypeInstance(module->mCurTypeInstance, rebuildTypeInst);