summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-07-13 14:43:20 +0000
committerErich Keane <erich.keane@intel.com>2018-07-13 14:43:20 +0000
commitac8cb22ad57fe605cee751db3de266e4a8613e9a (patch)
tree814c04095f640f13ae5e1f94a91acad2d553acd3 /llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp
parent3b6bcf6d672765825abc6ec39b7a852711cee257 (diff)
downloadbcm5719-llvm-ac8cb22ad57fe605cee751db3de266e4a8613e9a.tar.gz
bcm5719-llvm-ac8cb22ad57fe605cee751db3de266e4a8613e9a.zip
Add parens to silence Wparentheses warning, introduced by 336990
llvm-svn: 337002
Diffstat (limited to 'llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp')
-rw-r--r--llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp b/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp
index 08739ae3010..eebd07731d6 100644
--- a/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud