Skip to content

Commit

Permalink
amend code for CRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf committed Apr 28, 2024
1 parent 896aa2b commit 220bfba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/codegencommon.cpp
Expand Up @@ -4166,8 +4166,9 @@ void CodeGen::genHomeStackSegment(unsigned lclNum,
}
else
{
loadOffset = -(int)seg.GetStackOffset() - genCallerSPtoInitialSPdelta();
loadOffset = -genCallerSPtoInitialSPdelta();
}
loadOffset += (int)seg.GetStackOffset();

#ifdef TARGET_XARCH
GetEmitter()->emitIns_R_AR(ins_Load(loadType), size, initReg, genFramePointerReg(), loadOffset);
Expand Down

0 comments on commit 220bfba

Please sign in to comment.