mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed circular data dependency with comptime debugging
This commit is contained in:
parent
1ee4c26445
commit
9a9e12ea37
1 changed files with 3 additions and 1 deletions
|
@ -21158,8 +21158,10 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
|
||||||
|
|
||||||
if (mDICompileUnit)
|
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;
|
int flags = 0;
|
||||||
BfIRMDNode funcScope = mBfIRBuilder->DbgGetTypeInst(mCurTypeInstance);
|
BfIRMDNode funcScope = mBfIRBuilder->DbgGetTypeInst(mCurTypeInstance, BfIRPopulateType_Identity);
|
||||||
|
|
||||||
if (methodDef->mProtection == BfProtection_Public)
|
if (methodDef->mProtection == BfProtection_Public)
|
||||||
flags = llvm::DINode::FlagPublic;
|
flags = llvm::DINode::FlagPublic;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue