]> granicus.if.org Git - llvm/commitdiff
Add parentheses to silence warning.
authorBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2019 22:00:33 +0000 (22:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2019 22:00:33 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365394 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIFrameLowering.cpp

index 1f46012309a4c1c80a1e66a65ac9209faf452f47..4e968b67869c6e9cec8a8ca5801943e9e613aa4d 100644 (file)
@@ -805,13 +805,13 @@ void SIFrameLowering::emitPrologue(MachineFunction &MF,
       .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,