diff options
author | Kai Nacke <kai@redstar.de> | 2022-06-04 01:39:21 -0400 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2022-11-13 11:07:23 -0500 |
commit | 668db0e865814879824201b0345b9bafed386e81 (patch) | |
tree | df138e9bfe1231c1cb7f9c1a9a88eefa932d5514 | |
parent | 510d205b745b9e01db43fc8b805877d4aaf314b0 (diff) | |
download | llvm-668db0e865814879824201b0345b9bafed386e81.zip llvm-668db0e865814879824201b0345b9bafed386e81.tar.gz llvm-668db0e865814879824201b0345b9bafed386e81.tar.bz2 |
[m88k] Fix bug in M88kCallLowering.
Do not try to pass OutArg[0] as ThisReturnRegs.
-rw-r--r-- | llvm/lib/Target/M88k/GISel/M88kCallLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/M88k/GISel/M88kCallLowering.cpp b/llvm/lib/Target/M88k/GISel/M88kCallLowering.cpp index 542d0a7..6a95327 100644 --- a/llvm/lib/Target/M88k/GISel/M88kCallLowering.cpp +++ b/llvm/lib/Target/M88k/GISel/M88kCallLowering.cpp @@ -386,8 +386,8 @@ bool M88kCallLowering::lowerCall(MachineIRBuilder &MIRBuilder, OutgoingValueAssigner ArgAssigner(RetCC_M88k); CallReturnHandler ReturnedArgHandler(MIRBuilder, MRI, MIB); if (!determineAndHandleAssignments(ReturnedArgHandler, ArgAssigner, InArgs, - MIRBuilder, Info.CallConv, Info.IsVarArg, - OutArgs[0].Regs[0])) + MIRBuilder, Info.CallConv, + Info.IsVarArg)) return false; } |