Don't clear OverloadCandidateSets on destruction, it has no effect anymore.

And clearing a SmallPtrSet can be an expensive operation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-03-22 09:46:54 +00:00
Родитель 850d3b304b
Коммит e5a3ce6dd5
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -648,8 +648,6 @@ namespace clang {
/// \brief Clear out all of the candidates. /// \brief Clear out all of the candidates.
void clear(); void clear();
~OverloadCandidateSet() { clear(); }
/// Find the best viable function on this overload set, if it exists. /// Find the best viable function on this overload set, if it exists.
OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc, OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc,
OverloadCandidateSet::iterator& Best, OverloadCandidateSet::iterator& Best,