Fix ARM's genPutArgStk codegen (#23867)
authormikedn <onemihaid@hotmail.com>
Sat, 13 Apr 2019 17:39:20 +0000 (20:39 +0300)
committerBruce Forstall <brucefo@microsoft.com>
Sat, 13 Apr 2019 17:39:20 +0000 (10:39 -0700)
commit8ce1e716841e4a9d6c54be45eb75e740872a4b3e
treef504a4e57155260099fcb439eeb5202b0025e703
parent3bb584305549f865af443472100641de7b5d848e
Fix ARM's genPutArgStk codegen (#23867)

* Fix ARM's genPutArgStk codegen

When the OBJ node wraps a LCL_VAR node the code uses the type information (struct size, GC layout) from LclVarDsc. This is not always correct because the OBJ may actually have a different struct type due to type reinterpretation (e.g. Unsafe.As<X, Y>).

* Fix genPutArgStk comment
src/jit/codegenarmarch.cpp
tests/src/JIT/Regression/JitBlue/GitHub_23794/GitHub_23794.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_23794/GitHub_23794.csproj [new file with mode: 0644]