From edc45eb6a438e55c3654433d72ad6ded91729fff Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Fri, 13 Jul 2018 14:43:20 +0000 Subject: [PATCH] Add parens to silence Wparentheses warning, introduced by 336990 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337002 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86SpeculativeLoadHardening.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Target/X86/X86SpeculativeLoadHardening.cpp b/lib/Target/X86/X86SpeculativeLoadHardening.cpp index 08739ae3010..eebd07731d6 100644 --- a/lib/Target/X86/X86SpeculativeLoadHardening.cpp +++ b/lib/Target/X86/X86SpeculativeLoadHardening.cpp @@ -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. -- 2.50.1