[llvm] r325451 - Fix Wparentheses warning. NFCI

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 17 14:45:56 PST 2018


Author: rksimon
Date: Sat Feb 17 14:45:56 2018
New Revision: 325451

URL: http://llvm.org/viewvc/llvm-project?rev=325451&view=rev
Log:
Fix Wparentheses warning. NFCI

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=325451&r1=325450&r2=325451&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Feb 17 14:45:56 2018
@@ -3211,7 +3211,7 @@ unsigned SelectionDAG::ComputeNumSignBit
     // 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);




More information about the llvm-commits mailing list