From 041ab65fcd3ef79776175731f16f0d810336a086 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Tue, 19 May 2015 20:10:16 +0000 Subject: [PATCH] use 'auto *' for pointers; clearer usage, no deep copying git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237719 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 8e1dff8023e..a9591631550 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -8280,7 +8280,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N) { SmallVector 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,