From: Benjamin Kramer Date: Tue, 22 Mar 2011 09:46:54 +0000 (+0000) Subject: Don't clear OverloadCandidateSets on destruction, it has no effect anymore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5a3ce6dd555788a49efaabc3bd46d704e5e9d65;p=clang 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 --- diff --git a/include/clang/Sema/Overload.h b/include/clang/Sema/Overload.h index 3ce3513c21..6e07d2c68a 100644 --- a/include/clang/Sema/Overload.h +++ b/include/clang/Sema/Overload.h @@ -647,8 +647,6 @@ namespace clang { /// \brief Clear out all of the candidates. void clear(); - - ~OverloadCandidateSet() { clear(); } /// Find the best viable function on this overload set, if it exists. OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc,