Skip to content

Commit

Permalink
[LoongArch64] fix compiling errors after #90318. (#90713)
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf authored Aug 17, 2023
1 parent 296a1d5 commit 8e3376c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/codegenlinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ void CodeGen::genUnspillRegIfNeeded(GenTree* tree)
}

#if defined(TARGET_LOONGARCH64)
if (varTypeIsFloating(spillType) && emitter::isGeneralRegister(tree->GetRegNum()))
if (varTypeIsFloating(unspillType) && emitter::isGeneralRegister(tree->GetRegNum()))
{
unspillType = unspillType == TYP_FLOAT ? TYP_INT : TYP_LONG;
}
Expand Down

0 comments on commit 8e3376c

Please sign in to comment.