Fix Wparentheses warning. NFCI

llvm-svn: 325451
This commit is contained in:
Simon Pilgrim 2018-02-17 22:45:56 +00:00
parent 7fae42eb27
commit 6740df386c
1 changed files with 1 additions and 1 deletions

View File

@ -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);