diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-04 22:11:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-04 22:11:23 +0000 |
commit | 0c75eea8f661a82866688fd1fc4465883c4dd7d5 (patch) | |
tree | 96848f3b7cc25f95142a52b6dd2ba93f1de6e413 /lib/Sema/SemaOverload.cpp | |
parent | bab175ec4b075c8076ba14c762900392533f6ee4 (diff) |
Notes
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 47e3df20d9111..b5c0e634fa504 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -8958,9 +8958,7 @@ OverloadCandidateSet::BestViableFunction(Sema &S, SourceLocation Loc, S.IdentifyCUDAPreference(Caller, Cand->Function) == Sema::CFP_WrongSide; }; - Candidates.erase(std::remove_if(Candidates.begin(), Candidates.end(), - IsWrongSideCandidate), - Candidates.end()); + llvm::erase_if(Candidates, IsWrongSideCandidate); } } |