diff options
Diffstat (limited to 'llvm/lib/Target/Mips/MipsRegisterInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp index 3452bf495a34..7cba3118cd62 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp @@ -198,8 +198,7 @@ getReservedRegs(const MachineFunction &MF) const { // Reserve the base register if we need to both realign the stack and // allocate variable-sized objects at runtime. This should test the // same conditions as MipsFrameLowering::hasBP(). - if (needsStackRealignment(MF) && - MF.getFrameInfo().hasVarSizedObjects()) { + if (hasStackRealignment(MF) && MF.getFrameInfo().hasVarSizedObjects()) { Reserved.set(Mips::S7); Reserved.set(Mips::S7_64); } |
