[RISCV] Fix rL356123

The wrong version of the patch was committed. This fixes typos that broke the build.

llvm-svn: 356124
This commit is contained in:
Alex Bradbury 2019-03-14 08:31:35 +00:00
parent 8dbc6398e1
commit fec503acb6
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ RISCVRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
if (MF->getFunction().hasFnAttribute("interrupt")) { if (MF->getFunction().hasFnAttribute("interrupt")) {
if (Subtarget.hasStdExtD()) if (Subtarget.hasStdExtD())
return CSR_XLEN_F64_Interrupt_SaveList; return CSR_XLEN_F64_Interrupt_SaveList;
if (Subtarget..hasStdExtF()) if (Subtarget.hasStdExtF())
return CSR_XLEN_F32_Interrupt_SaveList; return CSR_XLEN_F32_Interrupt_SaveList;
return CSR_Interrupt_SaveList; return CSR_Interrupt_SaveList;
} }
@ -119,7 +119,7 @@ unsigned RISCVRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
const uint32_t * const uint32_t *
RISCVRegisterInfo::getCallPreservedMask(const MachineFunction & MF, RISCVRegisterInfo::getCallPreservedMask(const MachineFunction & MF,
CallingConv::ID /*CC*/) const { CallingConv::ID /*CC*/) const {
auto &Subtarget = MF->getSubtarget<RISCVSubtarget>(); auto &Subtarget = MF.getSubtarget<RISCVSubtarget>();
if (MF.getFunction().hasFnAttribute("interrupt")) { if (MF.getFunction().hasFnAttribute("interrupt")) {
if (Subtarget.hasStdExtD()) if (Subtarget.hasStdExtD())
return CSR_XLEN_F64_Interrupt_RegMask; return CSR_XLEN_F64_Interrupt_RegMask;