Skip to content

Commit

Permalink
Remove unnecessary Clone() (#45469)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson authored Jun 29, 2020
1 parent 35370eb commit 7ddc52b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ddc52b

Please sign in to comment.