From: Erich Keane Date: Fri, 13 Jul 2018 14:43:20 +0000 (+0000) Subject: Add parens to silence Wparentheses warning, introduced by 336990 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edc45eb6a438e55c3654433d72ad6ded91729fff;p=llvm 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 --- 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.