Do not look at Size when doing Auto layout (#1805)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 17 Jan 2020 08:35:33 +0000 (09:35 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2020 08:35:33 +0000 (09:35 +0100)
commit0fa59c94d2dd31f5637d86e9bed2a3b440e42db9
treecea9f3fc0cedd589bc50d25cd50fb93ece0ab73b
parent4db72366e8e49c30d7aa6d2cc920cf063fb911ea
Do not look at Size when doing Auto layout (#1805)

Seems like the deleted line was copypasted from the Sequential/Explicit case, but it's incorrect.

Fixes #1770.
src/coreclr/src/tools/Common/TypeSystem/Common/MetadataFieldLayoutAlgorithm.cs
src/coreclr/tests/src/Regressions/coreclr/1770/autolayoutsize.cs [new file with mode: 0644]
src/coreclr/tests/src/Regressions/coreclr/1770/autolayoutsize.csproj [new file with mode: 0644]