Add parentheses to silence warning.

llvm-svn: 365394
This commit is contained in:
Bill Wendling 2019-07-08 22:00:33 +00:00
parent 345708b681
commit c8933c4070
1 changed files with 6 additions and 6 deletions

View File

@ -805,12 +805,12 @@ void SIFrameLowering::emitPrologue(MachineFunction &MF,
.setMIFlag(MachineInstr::FrameSetup);
}
assert(!HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy != AMDGPU::NoRegister ||
FuncInfo->FramePointerSaveIndex) &&
assert((!HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy != AMDGPU::NoRegister ||
FuncInfo->FramePointerSaveIndex)) &&
"Needed to save FP but didn't save it anywhere");
assert(HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy == AMDGPU::NoRegister &&
!FuncInfo->FramePointerSaveIndex) &&
assert((HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy == AMDGPU::NoRegister &&
!FuncInfo->FramePointerSaveIndex)) &&
"Saved FP but didn't need it");
}