]> granicus.if.org Git - clang/commitdiff
Replace a use of std::for_each() with llvm::for_each(); NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 3 Nov 2017 20:09:17 +0000 (20:09 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 3 Nov 2017 20:09:17 +0000 (20:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317359 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaPseudoObject.cpp

index d159172a69908d201f98c9aa3c8a468206dd0a4d..58980be64a30fc9421b09e14d2de888b4c7e4564 100644 (file)
@@ -1442,8 +1442,7 @@ MSPropertyOpBuilder::getBaseMSProperty(MSPropertySubscriptExpr *E) {
 
 Expr *MSPropertyOpBuilder::rebuildAndCaptureObject(Expr *syntacticBase) {
   InstanceBase = capture(RefExpr->getBaseExpr());
-  std::for_each(CallArgs.begin(), CallArgs.end(),
-                [this](Expr *&Arg) { Arg = capture(Arg); });
+  llvm::for_each(CallArgs, [this](Expr *&Arg) { Arg = capture(Arg); });
   syntacticBase = Rebuilder(S, [=](Expr *, unsigned Idx) -> Expr * {
                     switch (Idx) {
                     case 0: