From 6740df386c534c0dba0c9818f4b52221ce7774e5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 17 Feb 2018 22:45:56 +0000 Subject: Fix Wparentheses warning. NFCI llvm-svn: 325451 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 313233068b5..d734cecf5f8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3211,7 +3211,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts, // the minimum of the clamp min/max range. bool IsMax = (Opcode == ISD::SMAX); ConstantSDNode *CstLow = nullptr, *CstHigh = nullptr; - if (CstLow = isConstOrDemandedConstSplat(Op.getOperand(1), DemandedElts)) + if ((CstLow = isConstOrDemandedConstSplat(Op.getOperand(1), DemandedElts))) if (Op.getOperand(0).getOpcode() == (IsMax ? ISD::SMIN : ISD::SMAX)) CstHigh = isConstOrDemandedConstSplat(Op.getOperand(0).getOperand(1), DemandedElts); -- cgit v1.2.3