[llvm] r254968 - fix return values to match bool return type; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 7 15:34:30 PST 2015


Author: spatel
Date: Mon Dec  7 17:34:30 2015
New Revision: 254968

URL: http://llvm.org/viewvc/llvm-project?rev=254968&view=rev
Log:
fix return values to match bool return type; NFC 

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=254968&r1=254967&r2=254968&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Dec  7 17:34:30 2015
@@ -3888,10 +3888,10 @@ static bool matchRotateSub(SDValue Pos,
 
   // Check whether Neg has the form (sub NegC, NegOp1) for some NegC and NegOp1.
   if (Neg.getOpcode() != ISD::SUB)
-    return 0;
+    return false;
   ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(0));
   if (!NegC)
-    return 0;
+    return false;
   SDValue NegOp1 = Neg.getOperand(1);
 
   // On the RHS of [A], if Pos is Pos' & (EltSize - 1), just replace Pos with




More information about the llvm-commits mailing list