From 99cd56e15b8122fdc965f109066105014d25c823 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Tue, 30 May 2017 18:58:33 +0900 Subject: [PATCH] [RyuJIT/ARM32] Fix offset of struct argument when using stack Fix offset value when struct argument is passed on stack --- src/jit/codegenarmarch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jit/codegenarmarch.cpp b/src/jit/codegenarmarch.cpp index f7edec1..48b40d7 100644 --- a/src/jit/codegenarmarch.cpp +++ b/src/jit/codegenarmarch.cpp @@ -751,7 +751,7 @@ void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode) if (varNode != nullptr) { // Load from our varNumImp source - emit->emitIns_R_S(INS_ldr, emitTypeSize(type), loReg, varNumInp, 0); + emit->emitIns_R_S(INS_ldr, emitTypeSize(type), loReg, varNumInp, structOffset); } else { -- 2.7.4