[release/6.0] Do not promote struct locals with holes (#62738)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 3 Jan 2022 02:20:00 +0000 (20:20 -0600)
committerGitHub <noreply@github.com>
Mon, 3 Jan 2022 02:20:00 +0000 (20:20 -0600)
commit6f1e03f1bfa04e00627173e51790df700438443e
treea69313ae9f9d0f6367cd7a33b943d41a26bcb809
parent2282b00b4bb9754088da92f45e5ac7bda16b58ec
[release/6.0] Do not promote struct locals with holes (#62738)

* Make sure the combined field size matches the struct size

* Fix the condition

* Update test and include containHoles condition

Co-authored-by: Kunal Pathak <Kunal.Pathak@microsoft.com>
src/coreclr/jit/lclvars.cpp
src/tests/JIT/Regression/JitBlue/Runtime_62597/Runtime_62597.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_62597/Runtime_62597.csproj [new file with mode: 0644]