From 8f719f2a37fd1741a4f55cf3026a3ce4d89f3bc6 Mon Sep 17 00:00:00 2001 From: Sinan Kaya <41809318+franksinankaya@users.noreply.github.com> Date: Tue, 1 Oct 2019 03:04:31 -0400 Subject: [PATCH] Replace otherRegNum with GetOtherRegNum --- src/jit/codegenxarch.cpp | 2 +- src/jit/compiler.h | 4 ++-- src/jit/lsraxarch.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index 1f0835c20c28..d75810962a5d 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -5376,7 +5376,7 @@ void CodeGen::genCallInstruction(GenTreeCall* call) else { assert(iterationNum == 1); - argReg = curArgTabEntry->otherRegNum; + argReg = curArgTabEntry->GetOtherRegNum(); } genConsumeReg(putArgRegNode); diff --git a/src/jit/compiler.h b/src/jit/compiler.h index c82d8b2d1f07..21a8521ddc6f 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -1411,8 +1411,8 @@ struct fgArgTabEntry { return (regNumber)regNums[0]; } - __declspec(property(get = getOtherRegNum)) regNumber otherRegNum; - regNumber getOtherRegNum() + + regNumber GetOtherRegNum() { return (regNumber)regNums[1]; } diff --git a/src/jit/lsraxarch.cpp b/src/jit/lsraxarch.cpp index 83521372abf8..082cd2727236 100644 --- a/src/jit/lsraxarch.cpp +++ b/src/jit/lsraxarch.cpp @@ -1170,7 +1170,7 @@ int LinearScan::BuildCall(GenTreeCall* call) int i = 0; for (GenTreeFieldList* entry = argNode->AsFieldList(); entry != nullptr; entry = entry->Rest()) { - const regNumber argReg = (i == 0) ? curArgTabEntry->regNum : curArgTabEntry->otherRegNum; + const regNumber argReg = (i == 0) ? curArgTabEntry->regNum : curArgTabEntry->GetOtherRegNum(); assert(entry->Current()->gtRegNum == argReg); assert(i < 2); i++;