[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.

llvm-svn: 224500

llvm/lib/Transforms/Scalar/SROA.cpp

index 45b6667..370712e 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)