Skip to content

Commit

Permalink
keep existing code for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed Aug 2, 2024
1 parent 7529e47 commit 6fd3927
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/coreclr/jit/codegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ void CodeGen::genEmitGSCookieCheck(bool pushReg)
}
else
{
if (compiler->info.compRetNativeType == TYP_REF)
{
gcInfo.gcRegGCrefSetCur |= RBM_INTRET;
}
else if (compiler->info.compRetNativeType == TYP_BYREF)
ReturnTypeDesc retTypeDesc = compiler->compRetTypeDesc;
const unsigned regCount = retTypeDesc.GetReturnRegCount();

for (unsigned i = 0; i < regCount; ++i)
{
gcInfo.gcRegByrefSetCur |= RBM_INTRET;
gcInfo.gcMarkRegPtrVal(retTypeDesc.GetABIReturnReg(i, compiler->info.compCallConv),
retTypeDesc.GetReturnRegType(i));
}
}
}
Expand Down

0 comments on commit 6fd3927

Please sign in to comment.