forked from OSchip/llvm-project
[C++11] Replace trivial lambda with std::cref.
llvm-svn: 202968
This commit is contained in:
parent
cce644a633
commit
fcef811822
|
@ -340,9 +340,7 @@ MultilibSet::filterCopy(const MultilibSet::FilterCallback &F,
|
||||||
|
|
||||||
void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F,
|
void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F,
|
||||||
multilib_list &Ms) {
|
multilib_list &Ms) {
|
||||||
Ms.erase(std::remove_if(Ms.begin(), Ms.end(),
|
Ms.erase(std::remove_if(Ms.begin(), Ms.end(), std::cref(F)), Ms.end());
|
||||||
[&F](const Multilib &M) { return F(M); }),
|
|
||||||
Ms.end());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) {
|
raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) {
|
||||||
|
|
Loading…
Reference in New Issue