summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-17 22:45:56 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-17 22:45:56 +0000
commit6740df386c534c0dba0c9818f4b52221ce7774e5 (patch)
tree306c3a556c94f6df32c2aee64ce6b426b1400e70 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent7fae42eb278796797ed724a45c7dcca0258bfcd2 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud