summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-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