projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d727b5
)
[SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use
author
Chandler Carruth
<chandlerc@gmail.com>
Thu, 18 Dec 2014 05:19:47 +0000
(
05:19
+0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Thu, 18 Dec 2014 05:19:47 +0000
(
05:19
+0000)
a lambda now that we have them.
llvm-svn: 224500
llvm/lib/Transforms/Scalar/SROA.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/SROA.cpp
b/llvm/lib/Transforms/Scalar/SROA.cpp
index
45b6667
..
370712e
100644
(file)
--- 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)