From 99cb63029afa1523b8ddb7e3374dd78af0945526 Mon Sep 17 00:00:00 2001 From: Lauro Ramos Venancio Date: Fri, 27 Apr 2007 20:10:08 +0000 Subject: [PATCH] add parenthesis. llvm-svn: 36514 --- llvm/lib/Target/ARM/ARMRegisterInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp index 34c07d723cd1..2fdbe681497c 100644 --- a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp @@ -85,7 +85,7 @@ ARMRegisterInfo::ARMRegisterInfo(const TargetInstrInfo &tii, const ARMSubtarget &sti) : ARMGenRegisterInfo(ARM::ADJCALLSTACKDOWN, ARM::ADJCALLSTACKUP), TII(tii), STI(sti), - FramePtr(STI.useThumbBacktraces() || STI.isThumb() ? ARM::R7 : ARM::R11) { + FramePtr((STI.useThumbBacktraces() || STI.isThumb()) ? ARM::R7 : ARM::R11) { } bool ARMRegisterInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB, @@ -1472,7 +1472,7 @@ unsigned ARMRegisterInfo::getRARegister() const { unsigned ARMRegisterInfo::getFrameRegister(MachineFunction &MF) const { if (STI.isTargetDarwin() || hasFP(MF)) - return STI.useThumbBacktraces() || STI.isThumb() ? ARM::R7 : ARM::R11; + return (STI.useThumbBacktraces() || STI.isThumb()) ? ARM::R7 : ARM::R11; else return ARM::SP; }