Skip to content

Commit 6498a94

Browse files
jakobbotschVSadov
authored andcommitted
Fix build
1 parent 27a707c commit 6498a94

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/coreclr/jit/lower.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ void Lowering::LowerArg(GenTreeCall* call, CallArg* callArg, bool late)
18551855
// For vararg call or on armel, reg args should be all integer.
18561856
// For arg type and arg reg mismatch, reg arg should be integer on riscv64
18571857
// Insert copies as needed to move float value to integer register.
1858-
GenTree* newNode = LowerFloatArg(ppArg, callArg);
1858+
GenTree* newNode = LowerFloatArg(call, ppArg, callArg);
18591859
if (newNode != nullptr)
18601860
{
18611861
type = newNode->TypeGet();
@@ -1887,6 +1887,7 @@ void Lowering::LowerArg(GenTreeCall* call, CallArg* callArg, bool late)
18871887
// LowerFloatArg: Lower float call arguments on the arm/LoongArch64/RiscV64 platform.
18881888
//
18891889
// Arguments:
1890+
// call - the call
18901891
// arg - The arg node
18911892
// callArg - call argument info
18921893
//
@@ -1899,7 +1900,7 @@ void Lowering::LowerArg(GenTreeCall* call, CallArg* callArg, bool late)
18991900
// This must handle scalar float arguments as well as GT_FIELD_LISTs
19001901
// with floating point fields.
19011902
//
1902-
GenTree* Lowering::LowerFloatArg(GenTree** pArg, CallArg* callArg)
1903+
GenTree* Lowering::LowerFloatArg(GenTreeCall* call, GenTree** pArg, CallArg* callArg)
19031904
{
19041905
GenTree* arg = *pArg;
19051906
if (callArg->AbiInfo.GetRegNum() != REG_STK)

src/coreclr/jit/lower.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class Lowering final : public Phase
183183
GenTree* NewPutArg(GenTreeCall* call, GenTree* arg, CallArg* callArg, var_types type);
184184
void LowerArg(GenTreeCall* call, CallArg* callArg, bool late);
185185
#if defined(TARGET_ARMARCH) || defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
186-
GenTree* LowerFloatArg(GenTree** pArg, CallArg* callArg);
186+
GenTree* LowerFloatArg(GenTreeCall* call, GenTree** pArg, CallArg* callArg);
187187
GenTree* LowerFloatArgReg(GenTree* arg, regNumber regNum);
188188
#endif
189189

0 commit comments

Comments
 (0)