JIT: Avoid omitting copies for struct fields passed implicitly byrefs (#81787)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Wed, 8 Feb 2023 15:38:24 +0000 (16:38 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 15:38:24 +0000 (16:38 +0100)
commit5b2ceeb8c240f8c6248ff9bee1b696014004a7af
tree1d23d4bbbd112e172bf5f55b76cf210189ea3fce
parent143347efbea34d51b106b8f905ebbb9fb1c9987e
JIT: Avoid omitting copies for struct fields passed implicitly byrefs (#81787)

The code does not properly mark the parent struct as address exposed,
but also doing so would completely disable any tracking/optimization for
these locals which we do not want to do.

Fix #81739
src/coreclr/jit/lclvars.cpp
src/coreclr/jit/morph.cpp
src/tests/JIT/Regression/JitBlue/Runtime_81739/Runtime_81739.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_81739/Runtime_81739.csproj [new file with mode: 0644]