Skip to content

Commit

Permalink
Ensure isUsed is set if MustProduceValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Jul 6, 2024
1 parent a18431e commit d96b76b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/ByteCode/ByteCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,10 @@ ParseNode* VisitBlock(ParseNode *pnode, ByteCodeGenerator* byteCodeGenerator, Pr
}
}
}
if (nullptr != pnodeLastVal)
{
pnodeLastVal->isUsed = true;
}
return pnodeLastVal;
}

Expand Down

0 comments on commit d96b76b

Please sign in to comment.