diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-05-19 20:10:16 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-05-19 20:10:16 +0000 |
commit | 03abbb48a43840bc6d102b94a000a1c09fe036d7 (patch) | |
tree | f27bedfe58f06afd2aa27bddbc6026f117798f2e /llvm/lib | |
parent | 54ef4c3bb36fdc1dbe2e0348c2890b5c8216e4d7 (diff) | |
download | bcm5719-llvm-03abbb48a43840bc6d102b94a000a1c09fe036d7.tar.gz bcm5719-llvm-03abbb48a43840bc6d102b94a000a1c09fe036d7.zip |
use 'auto *' for pointers; clearer usage, no deep copying
llvm-svn: 237719
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 8e1dff8023e..a9591631550 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -8280,7 +8280,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N) { SmallVector<SDNode *, 4> Users; // Find all FDIV users of the same divisor. - for (auto U : N1->uses()) { + for (auto *U : N1->uses()) { if (U->getOpcode() == ISD::FDIV && U->getOperand(1) == N1) Users.push_back(U); } @@ -8290,7 +8290,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N) { SDValue Reciprocal = DAG.getNode(ISD::FDIV, DL, VT, FPOne, N1); // Dividend / Divisor -> Dividend * Reciprocal - for (auto U : Users) { + for (auto *U : Users) { SDValue Dividend = U->getOperand(0); if (Dividend != FPOne) { SDValue NewNode = DAG.getNode(ISD::FMUL, SDLoc(U), VT, Dividend, |