Skip to content

Commit f4bc189

Browse files
committed
[RISCV][GISel] Pass the IsFixed flag into CC_RISCV for outgoing arguments.
This is needed to make FP values be pased in a GPR as required by the variadic function ABI.
1 parent b14d344 commit f4bc189

File tree

2 files changed

+352
-1
lines changed

2 files changed

+352
-1
lines changed

llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct RISCVOutgoingValueAssigner : public CallLowering::OutgoingValueAssigner {
4848
const RISCVSubtarget &Subtarget = MF.getSubtarget<RISCVSubtarget>();
4949

5050
return RISCVAssignFn(DL, Subtarget.getTargetABI(), ValNo, ValVT, LocVT,
51-
LocInfo, Flags, State, /*IsFixed=*/true, IsRet,
51+
LocInfo, Flags, State, Info.IsFixed, IsRet,
5252
Info.Ty, *Subtarget.getTargetLowering(),
5353
/*FirstMaskArgument=*/std::nullopt);
5454
}

0 commit comments

Comments
 (0)