forked from OSchip/llvm-project
[SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use
a lambda now that we have them. llvm-svn: 224500
This commit is contained in:
parent
7d727b5f11
commit
68ea415d04
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue