From: Hyeongseok Oh Date: Tue, 29 Aug 2017 01:48:23 +0000 (+0900) Subject: [RyuJIT/ARM32] Fix setting register of GT_FIELD_LIST for long X-Git-Tag: accepted/tizen/base/20180629.140029~670^2~190^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fdc8393816b209f496a710f71a313b4ee2d1958;p=platform%2Fupstream%2Fcoreclr.git [RyuJIT/ARM32] Fix setting register of GT_FIELD_LIST for long Remove setting gtRegNum of GT_FIELD_LIST in LowerArg() gtRegNum of GT_FIELD_LIST is reset in NewPutArg() --- diff --git a/src/jit/lower.cpp b/src/jit/lower.cpp index 79e2594..c2bad13 100644 --- a/src/jit/lower.cpp +++ b/src/jit/lower.cpp @@ -1253,10 +1253,9 @@ void Lowering::LowerArg(GenTreeCall* call, GenTreePtr* ppArg) GenTreePtr argHi = arg->gtGetOp2(); GenTreeFieldList* fieldList = new (comp, GT_FIELD_LIST) GenTreeFieldList(argLo, 0, TYP_INT, nullptr); + // Only the first fieldList node (GTF_FIELD_LIST_HEAD) is in the instruction sequence. (void)new (comp, GT_FIELD_LIST) GenTreeFieldList(argHi, 4, TYP_INT, fieldList); - - putArg = NewPutArg(call, fieldList, info, TYP_VOID); - putArg->gtRegNum = info->regNum; + putArg = NewPutArg(call, fieldList, info, TYP_VOID); BlockRange().InsertBefore(arg, putArg); BlockRange().Remove(arg);