From 9fdc8393816b209f496a710f71a313b4ee2d1958 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Tue, 29 Aug 2017 10:48:23 +0900 Subject: [PATCH] [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() --- src/jit/lower.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.7.4