未验证 提交 7ddc52b1 编写于 作者: R Rikki Gibson 提交者: GitHub

Remove unnecessary Clone() (#45469)

上级 35370ebd
......@@ -2122,7 +2122,7 @@ private void VisitStatementsWithLocalFunctions(BoundBlock block)
// The starting state is the top state, but with captured
// variables set according to Joining the state at all the
// local function use sites
State = TopState().Clone();
State = TopState();
for (int slot = 1; slot < localFunctionState.StartingState.Capacity; slot++)
{
var symbol = variableBySlot[RootSlot(slot)].Symbol;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册