Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Replace otherRegNum with GetOtherRegNum
Browse files Browse the repository at this point in the history
  • Loading branch information
franksinankaya authored and Sergey Andreenko committed Oct 1, 2019
1 parent 6ec7898 commit 8f719f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/jit/codegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5376,7 +5376,7 @@ void CodeGen::genCallInstruction(GenTreeCall* call)
else
{
assert(iterationNum == 1);
argReg = curArgTabEntry->otherRegNum;
argReg = curArgTabEntry->GetOtherRegNum();
}

genConsumeReg(putArgRegNode);
Expand Down
4 changes: 2 additions & 2 deletions src/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,8 @@ struct fgArgTabEntry
{
return (regNumber)regNums[0];
}
__declspec(property(get = getOtherRegNum)) regNumber otherRegNum;
regNumber getOtherRegNum()

regNumber GetOtherRegNum()
{
return (regNumber)regNums[1];
}
Expand Down
2 changes: 1 addition & 1 deletion src/jit/lsraxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 8f719f2

Please sign in to comment.