diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index b376e7ec..767b2cf4 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -21158,8 +21158,10 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup, if (mDICompileUnit) { + // Note: for comptime we need to ensure we don't force type population with DbgGetTypeInst here, as that + // can generate a CeMachine InitType circular data reference int flags = 0; - BfIRMDNode funcScope = mBfIRBuilder->DbgGetTypeInst(mCurTypeInstance); + BfIRMDNode funcScope = mBfIRBuilder->DbgGetTypeInst(mCurTypeInstance, BfIRPopulateType_Identity); if (methodDef->mProtection == BfProtection_Public) flags = llvm::DINode::FlagPublic;