1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Scope fix

This commit is contained in:
Brian Fiete 2020-12-14 05:22:14 -08:00
parent 6d058ba59c
commit b1f526dcad

View file

@ -2478,7 +2478,7 @@ void BfModule::UpdateSrcPos(BfAstNode* astNode, BfSrcPosFlags flags, int debugLo
if (mCurMethodState->mCrossingMixin)
inlineAt = BfIRMDNode();
if (!useDIScope)
if ((!useDIScope) && (mIsConstModule))
useDIScope = wantDIFile;
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, column, useDIScope, inlineAt);
if ((flags & BfSrcPosFlag_Expression) == 0)