[llvm] r224500 - [SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use
Chandler Carruth
chandlerc at gmail.com
Wed Dec 17 21:19:47 PST 2014
Author: chandlerc
Date: Wed Dec 17 23:19:47 2014
New Revision: 224500
URL: http://llvm.org/viewvc/llvm-project?rev=224500&view=rev
Log:
[SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use
a lambda now that we have them.
Modified:
llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=224500&r1=224499&r2=224500&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Wed Dec 17 23:19:47 2014
@@ -729,7 +729,9 @@ AllocaSlices::AllocaSlices(const DataLay
}
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)
More information about the llvm-commits
mailing list