Skip to content

Commit

Permalink
[LoongArch64] fix compiling errors after dotnet#90318.
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf committed Aug 17, 2023
1 parent 92786fd commit 53e91a9
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 53e91a9

Please sign in to comment.