summaryrefslogtreecommitdiff
path: root/clang/lib/Sema/ScopeInfo.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-23 00:15:04 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-23 00:15:04 +0000
commitf7e3609f77936044893fc2a69981d6ba212e3728 (patch)
tree9c00ae8b3cf60810afa33e3957c2e7e27135fd61 /clang/lib/Sema/ScopeInfo.cpp
parentd1fbf48566ae0ff14ea2b935cbf3cbbba40a6d28 (diff)
downloadllvm-f7e3609f77936044893fc2a69981d6ba212e3728.tar.gz
Use ranges to concisely express iteration
No functional change is intended, this should just clean things up a little. llvm-svn: 273522
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r--clang/lib/Sema/ScopeInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp
index 037ffd843bb7..4b2e13e20deb 100644
--- a/clang/lib/Sema/ScopeInfo.cpp
+++ b/clang/lib/Sema/ScopeInfo.cpp
@@ -215,7 +215,7 @@ void FunctionScopeInfo::markSafeWeakUse(const Expr *E) {
// Has there been a read from the object using this Expr?
FunctionScopeInfo::WeakUseVector::reverse_iterator ThisUse =
- std::find(Uses->second.rbegin(), Uses->second.rend(), WeakUseTy(E, true));
+ llvm::find(llvm::reverse(Uses->second), WeakUseTy(E, true));
if (ThisUse == Uses->second.rend())
return;