From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/lib/Analysis/GuardUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Analysis/GuardUtils.cpp') diff --git a/llvm/lib/Analysis/GuardUtils.cpp b/llvm/lib/Analysis/GuardUtils.cpp index d482832798581..cd132c56991f8 100644 --- a/llvm/lib/Analysis/GuardUtils.cpp +++ b/llvm/lib/Analysis/GuardUtils.cpp @@ -47,7 +47,7 @@ bool llvm::parseWidenableBranch(const User *U, Value *&Condition, Use *C, *WC; if (parseWidenableBranch(const_cast(U), C, WC, IfTrueBB, IfFalseBB)) { - if (C) + if (C) Condition = C->get(); else Condition = ConstantInt::getTrue(IfTrueBB->getContext()); @@ -66,10 +66,10 @@ bool llvm::parseWidenableBranch(User *U, Use *&C,Use *&WC, auto *Cond = BI->getCondition(); if (!Cond->hasOneUse()) return false; - + IfTrueBB = BI->getSuccessor(0); IfFalseBB = BI->getSuccessor(1); - + if (match(Cond, m_Intrinsic())) { WC = &BI->getOperandUse(0); C = nullptr; @@ -88,7 +88,7 @@ bool llvm::parseWidenableBranch(User *U, Use *&C,Use *&WC, if (!And) // Could be a constexpr return false; - + if (match(A, m_Intrinsic()) && A->hasOneUse()) { WC = &And->getOperandUse(0); -- cgit v1.2.3