[llvm] r365394 - Add parentheses to silence warning.
Bill Wendling via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 15:00:34 PDT 2019
Author: void
Date: Mon Jul 8 15:00:33 2019
New Revision: 365394
URL: http://llvm.org/viewvc/llvm-project?rev=365394&view=rev
Log:
Add parentheses to silence warning.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp?rev=365394&r1=365393&r2=365394&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp Mon Jul 8 15:00:33 2019
@@ -805,13 +805,13 @@ void SIFrameLowering::emitPrologue(Machi
.setMIFlag(MachineInstr::FrameSetup);
}
- 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)) &&
+ "Needed to save FP but didn't save it anywhere");
- assert(HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy == AMDGPU::NoRegister &&
- !FuncInfo->FramePointerSaveIndex) &&
- "Saved FP but didn't need it");
+ assert((HasFP || (FuncInfo->SGPRForFPSaveRestoreCopy == AMDGPU::NoRegister &&
+ !FuncInfo->FramePointerSaveIndex)) &&
+ "Saved FP but didn't need it");
}
void SIFrameLowering::emitEpilogue(MachineFunction &MF,
More information about the llvm-commits
mailing list