diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-17 22:45:56 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-17 22:45:56 +0000 |
commit | 6740df386c534c0dba0c9818f4b52221ce7774e5 (patch) | |
tree | 306c3a556c94f6df32c2aee64ce6b426b1400e70 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 7fae42eb278796797ed724a45c7dcca0258bfcd2 (diff) | |
download | bcm5719-llvm-6740df386c534c0dba0c9818f4b52221ce7774e5.tar.gz bcm5719-llvm-6740df386c534c0dba0c9818f4b52221ce7774e5.zip |
Fix Wparentheses warning. NFCI
llvm-svn: 325451
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |