From: Chandler Carruth Date: Thu, 18 Dec 2014 05:19:47 +0000 (+0000) Subject: [SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68ea415d04e36d24a95448e3943c2b9cc086b8b6;p=platform%2Fupstream%2Fllvm.git [SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use a lambda now that we have them. llvm-svn: 224500 --- diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index 45b6667..370712e 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -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)