Remove a field from the CopyToAsync async state machine (dotnet/coreclr#7157)
authorStephen Toub <stoub@microsoft.com>
Tue, 13 Sep 2016 16:36:44 +0000 (12:36 -0400)
committerJan Kotas <jkotas@microsoft.com>
Tue, 13 Sep 2016 16:36:44 +0000 (09:36 -0700)
commit387be23ea798d2b3435e85b30cdcd5d12dabb5fc
treeb6ea9afa3b3ef975351dacd0dd97c33d08f7e340
parenta3de2a0dd41434ea4001c15535c195c96698ef1c
Remove a field from the CopyToAsync async state machine (dotnet/coreclr#7157)

The compiler is lifting the local ```bytesRead``` into a field on the async state machine, even though its value need not be preserved across any await.

Commit migrated from https://github.com/dotnet/coreclr/commit/6f399b187eb286b2b682fe9efaad531495770638
src/coreclr/src/mscorlib/src/System/IO/Stream.cs