mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Scope fix
This commit is contained in:
parent
6d058ba59c
commit
b1f526dcad
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue