mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Properly set mIgnoreWrites in nameof expr
This commit is contained in:
parent
dc901b8614
commit
ff229f385d
1 changed files with 1 additions and 0 deletions
|
@ -12036,6 +12036,7 @@ void BfExprEvaluator::Visit(BfNameOfExpression* nameOfExpr)
|
|||
if (name.IsEmpty())
|
||||
{
|
||||
SetAndRestoreValue<BfEvalExprFlags> prevFlags(mBfEvalExprFlags, (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_NameOf));
|
||||
SetAndRestoreValue<bool> prevIgnoreErrors(mModule->mBfIRBuilder->mIgnoreWrites, true);
|
||||
VisitChild(nameOfExpr->mTarget);
|
||||
|
||||
if ((mBfEvalExprFlags & BfEvalExprFlags_NameOfSuccess) != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue