From: Jim Grosbach Date: Fri, 11 Apr 2014 00:27:19 +0000 (+0000) Subject: [ARM64,C++11]: More range-based loop simplification. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=098f42dbc76f2f0ff8d4a10f9f77c886d9737013;p=oota-llvm.git [ARM64,C++11]: More range-based loop simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206006 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM64/ARM64ISelLowering.cpp b/lib/Target/ARM64/ARM64ISelLowering.cpp index 0fcafc1f87e..1987f91b83f 100644 --- a/lib/Target/ARM64/ARM64ISelLowering.cpp +++ b/lib/Target/ARM64/ARM64ISelLowering.cpp @@ -7322,9 +7322,8 @@ bool ARM64TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const { return false; bool HasRet = false; - for (SDNode::use_iterator UI = Copy->use_begin(), UE = Copy->use_end(); - UI != UE; ++UI) { - if (UI->getOpcode() != ARM64ISD::RET_FLAG) + for (SDNode *Node : Copy->uses()) { + if (Node->getOpcode() != ARM64ISD::RET_FLAG) return false; HasRet = true; }