diff --git a/src/Compilers/Core/Portable/Text/SourceText.cs b/src/Compilers/Core/Portable/Text/SourceText.cs index 885c88e18e46e..97f0f07d291f0 100644 --- a/src/Compilers/Core/Portable/Text/SourceText.cs +++ b/src/Compilers/Core/Portable/Text/SourceText.cs @@ -656,10 +656,7 @@ ImmutableArray computeContentHash() hash.Append(MemoryMarshal.AsBytes(charSpan)); } - // Switch this to ImmutableCollectionsMarshal.AsImmutableArray(hash.GetHashAndReset()) when we move to S.C.I v8. - Span destination = stackalloc byte[128 / 8]; - hash.GetHashAndReset(destination); - return destination.ToImmutableArray(); + return ImmutableCollectionsMarshal.AsImmutableArray(hash.GetHashAndReset()); } finally {