[LoopUtils] Use llvm::find
authorWhitney Tsang <whitneyt@ca.ibm.com>
Mon, 25 May 2020 13:31:57 +0000 (13:31 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Mon, 25 May 2020 13:34:56 +0000 (13:34 +0000)
commit5d6c5b463cab7aeb74b20f51af88ba1d1658f8a8
tree28dbe851f7948052dd2ca7d6530bffa69e73d0b6
parent82bee922afd65bf884abb9ea3db3fc7fede4e1cf
[LoopUtils] Use llvm::find

Summary: Fixes this build error:

llvm/lib/Transforms/Utils/LoopUtils.cpp:679:26: error: no matching
function for call to 'find'
      Loop::iterator I = find(ParentLoop->begin(), ParentLoop->end(),
L);
                         ^~~~
Authored By: orivej
Reviewer: Whitney
Reviewed By: Whitney
Subscribers: hiraditya, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D80473
llvm/lib/Transforms/Utils/LoopUtils.cpp