Keep OBJ on mismatched struct assignment
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 4 Jan 2018 01:45:07 +0000 (17:45 -0800)
committerCarol Eidt <carol.eidt@microsoft.com>
Thu, 4 Jan 2018 01:45:07 +0000 (17:45 -0800)
commit76b4b48489a249c037f15b5d1c66393c149151d8
treea2e9c75cc7c1cf53acb78d3832e2aa93851ccb9e
parent55f9cc3af46fdca20b08e7d0cf9c19fe833a8679
Keep OBJ on mismatched struct assignment

In a mismatched struct assignment, e.g. using Unsafe.As, we need to retain the OBJ(ADDR(lcl)) on the rhs of the assignment.

Fix #15237
src/jit/morph.cpp
tests/src/JIT/Regression/JitBlue/GitHub_15237/GitHub_15237.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_15237/GitHub_15237.csproj [new file with mode: 0644]