[llvm] r356124 - [RISCV] Fix rL356123
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 01:31:36 PDT 2019
Author: asb
Date: Thu Mar 14 01:31:35 2019
New Revision: 356124
URL: http://llvm.org/viewvc/llvm-project?rev=356124&view=rev
Log:
[RISCV] Fix rL356123
The wrong version of the patch was committed. This fixes typos that broke the build.
Modified:
llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp?rev=356124&r1=356123&r2=356124&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp Thu Mar 14 01:31:35 2019
@@ -36,7 +36,7 @@ RISCVRegisterInfo::getCalleeSavedRegs(co
if (MF->getFunction().hasFnAttribute("interrupt")) {
if (Subtarget.hasStdExtD())
return CSR_XLEN_F64_Interrupt_SaveList;
- if (Subtarget..hasStdExtF())
+ if (Subtarget.hasStdExtF())
return CSR_XLEN_F32_Interrupt_SaveList;
return CSR_Interrupt_SaveList;
}
@@ -119,7 +119,7 @@ unsigned RISCVRegisterInfo::getFrameRegi
const uint32_t *
RISCVRegisterInfo::getCallPreservedMask(const MachineFunction & MF,
CallingConv::ID /*CC*/) const {
- auto &Subtarget = MF->getSubtarget<RISCVSubtarget>();
+ auto &Subtarget = MF.getSubtarget<RISCVSubtarget>();
if (MF.getFunction().hasFnAttribute("interrupt")) {
if (Subtarget.hasStdExtD())
return CSR_XLEN_F64_Interrupt_RegMask;
More information about the llvm-commits
mailing list