r317359 - Replace a use of std::for_each() with llvm::for_each(); NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 3 13:09:18 PDT 2017


Author: aaronballman
Date: Fri Nov  3 13:09:17 2017
New Revision: 317359

URL: http://llvm.org/viewvc/llvm-project?rev=317359&view=rev
Log:
Replace a use of std::for_each() with llvm::for_each(); NFC.

Modified:
    cfe/trunk/lib/Sema/SemaPseudoObject.cpp

Modified: cfe/trunk/lib/Sema/SemaPseudoObject.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaPseudoObject.cpp?rev=317359&r1=317358&r2=317359&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaPseudoObject.cpp (original)
+++ cfe/trunk/lib/Sema/SemaPseudoObject.cpp Fri Nov  3 13:09:17 2017
@@ -1442,8 +1442,7 @@ MSPropertyOpBuilder::getBaseMSProperty(M
 
 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:




More information about the cfe-commits mailing list