]> granicus.if.org Git - llvm/commitdiff
Add parens to silence Wparentheses warning, introduced by 336990
authorErich Keane <erich.keane@intel.com>
Fri, 13 Jul 2018 14:43:20 +0000 (14:43 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 13 Jul 2018 14:43:20 +0000 (14:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337002 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86SpeculativeLoadHardening.cpp

index 08739ae3010061da5a4dc260a59a94f239d0c4fb..eebd07731d6ab9da8fe563c9d04657d140ff9983 100644 (file)
@@ -499,11 +499,9 @@ bool X86SpeculativeLoadHardeningPass::runOnMachineFunction(
 
           // Now insert the cmovs to implement the checks.
           auto InsertPt = CheckingMBB.begin();
-          assert(
-              InsertPt == CheckingMBB.end() ||
-              !InsertPt->isPHI() &&
-                  "Should never have a PHI in the initial checking block as it "
-                  "always has a single predecessor!");
+          assert((InsertPt == CheckingMBB.end() || !InsertPt->isPHI()) &&
+                 "Should never have a PHI in the initial checking block as it "
+                 "always has a single predecessor!");
 
           // We will wire each cmov to each other, but need to start with the
           // incoming pred state.