mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +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)
|
if (mCurMethodState->mCrossingMixin)
|
||||||
inlineAt = BfIRMDNode();
|
inlineAt = BfIRMDNode();
|
||||||
|
|
||||||
if (!useDIScope)
|
if ((!useDIScope) && (mIsConstModule))
|
||||||
useDIScope = wantDIFile;
|
useDIScope = wantDIFile;
|
||||||
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, column, useDIScope, inlineAt);
|
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, column, useDIScope, inlineAt);
|
||||||
if ((flags & BfSrcPosFlag_Expression) == 0)
|
if ((flags & BfSrcPosFlag_Expression) == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue