Skip to content

Commit

Permalink
JIT: Fix Swift multireg stores in presence of GT_RELOAD (#99789)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch authored Mar 15, 2024
1 parent b94364e commit 334020d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7987,7 +7987,7 @@ void CodeGen::genMultiRegStoreToLocal(GenTreeLclVar* lclNode)

unsigned lclNum = lclNode->GetLclNum();
LclVarDsc* varDsc = compiler->lvaGetDesc(lclNum);
if (op1->OperIs(GT_CALL))
if (actualOp1->OperIs(GT_CALL))
{
assert(regCount <= MAX_RET_REG_COUNT);
noway_assert(varDsc->lvIsMultiRegRet);
Expand Down Expand Up @@ -8048,9 +8048,9 @@ void CodeGen::genMultiRegStoreToLocal(GenTreeLclVar* lclNode)

#ifdef SWIFT_SUPPORT
const uint32_t* offsets = nullptr;
if (op1->IsCall() && (op1->AsCall()->GetUnmanagedCallConv() == CorInfoCallConvExtension::Swift))
if (actualOp1->IsCall() && (actualOp1->AsCall()->GetUnmanagedCallConv() == CorInfoCallConvExtension::Swift))
{
const CORINFO_SWIFT_LOWERING* lowering = compiler->GetSwiftLowering(op1->AsCall()->gtRetClsHnd);
const CORINFO_SWIFT_LOWERING* lowering = compiler->GetSwiftLowering(actualOp1->AsCall()->gtRetClsHnd);
assert(!lowering->byReference && (regCount == lowering->numLoweredElements));
offsets = lowering->offsets;
}
Expand Down

0 comments on commit 334020d

Please sign in to comment.