From 7ddc52b1e6afbae44a12aaf9e1899890ecebaf99 Mon Sep 17 00:00:00 2001 From: Rikki Gibson Date: Mon, 29 Jun 2020 09:47:42 -0700 Subject: [PATCH] Remove unnecessary Clone() (#45469) --- src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs b/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs index e676ecbad85..8a1d17f5439 100644 --- a/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs +++ b/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs @@ -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; -- GitLab