mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
[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
This commit is contained in:
@ -729,7 +729,9 @@ AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Slices.erase(std::remove_if(Slices.begin(), Slices.end(),
|
Slices.erase(std::remove_if(Slices.begin(), Slices.end(),
|
||||||
std::mem_fun_ref(&Slice::isDead)),
|
[](const Slice &S) {
|
||||||
|
return S.isDead();
|
||||||
|
}),
|
||||||
Slices.end());
|
Slices.end());
|
||||||
|
|
||||||
#if __cplusplus >= 201103L && !defined(NDEBUG)
|
#if __cplusplus >= 201103L && !defined(NDEBUG)
|
||||||
|
Reference in New Issue
Block a user