[SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use
authorChandler Carruth <chandlerc@gmail.com>
Thu, 18 Dec 2014 05:19:47 +0000 (05:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 18 Dec 2014 05:19:47 +0000 (05:19 +0000)
a lambda now that we have them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224500 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index 45b66674bc95fa44e79e852f143f25a98d4f710e..370712e07d7ec97eb31cbe0ef7f028e5ba4234c1 100644 (file)
@@ -729,7 +729,9 @@ AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI)
   }
 
   Slices.erase(std::remove_if(Slices.begin(), Slices.end(),
-                              std::mem_fun_ref(&Slice::isDead)),
+                              [](const Slice &S) {
+                                return S.isDead();
+                              }),
                Slices.end());
 
 #if __cplusplus >= 201103L && !defined(NDEBUG)