summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-12-07 23:34:30 +0000
committerSanjay Patel <spatel@rotateright.com>2015-12-07 23:34:30 +0000
commitdc627ad63fcfda856de892588c7cb4e1454e3645 (patch)
tree7b1ee8960dd2707c6c829b53f8610924ba85c9c8
parentc6c9735f830a92333f94b18be1548e1f99feff9f (diff)
downloadbcm5719-llvm-dc627ad63fcfda856de892588c7cb4e1454e3645.tar.gz
bcm5719-llvm-dc627ad63fcfda856de892588c7cb4e1454e3645.zip
fix return values to match bool return type; NFC
llvm-svn: 254968
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 10fb334c4c6..97a9646c323 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -3888,10 +3888,10 @@ static bool matchRotateSub(SDValue Pos, SDValue Neg, unsigned EltSize) {
// 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
OpenPOWER on IntegriCloud