Fix Issue 6585: Add offset to struct field arg (#6616)
authorCarol Eidt <carol.eidt@microsoft.com>
Fri, 5 Aug 2016 08:38:44 +0000 (01:38 -0700)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 5 Aug 2016 08:38:44 +0000 (10:38 +0200)
commit1608c2c68af836736cbeff81cdd10212666a17cd
tree88bcfdfe3f70990b0cf8c604396a67064f327157
parentc4da56ed917793ec1c5100841541d7e17a18f02a
Fix Issue 6585: Add offset to struct field arg (#6616)

When the child of a GT_OBJ is a lclFldAddr, genConsumePutStructArgStk()
was not adding the offset of the struct field to the base address of
the local.
src/jit/codegenxarch.cpp
tests/src/JIT/Directed/StructABI/structfieldparam.cs [new file with mode: 0755]
tests/src/JIT/Directed/StructABI/structfieldparam_r.csproj [new file with mode: 0644]
tests/src/JIT/Directed/StructABI/structfieldparam_ro.csproj [new file with mode: 0644]