[llvm] [RISCV] Handle RVV return type in calling convention correctly (PR #87736)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 7 21:09:56 PDT 2024
================
@@ -409,7 +409,7 @@ bool RISCVCallLowering::lowerReturnVal(MachineIRBuilder &MIRBuilder,
splitToValueTypes(OrigRetInfo, SplitRetInfos, DL, CC);
RVVArgDispatcher Dispatcher{&MF, getTLI<RISCVTargetLowering>(),
- F.getReturnType()};
+ ArrayRef(F.getReturnType())};
----------------
wangpc-pp wrote:
Do we need to construct an ArrayRef explicitly?
https://github.com/llvm/llvm-project/pull/87736
More information about the llvm-commits
mailing list