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://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9ac193609f9b72bcff8e88e698dfbd277b6a58bd;p=oota-llvm.git [SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use a lambda now that we have them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224500 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 45b66674bc9..370712e07d7 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/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)