r288534 - [Sema] Reset a BumpPtrAllocator on clear(). NFC.

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 2 13:00:13 PST 2016


Author: gbiv
Date: Fri Dec  2 15:00:12 2016
New Revision: 288534

URL: http://llvm.org/viewvc/llvm-project?rev=288534&view=rev
Log:
[Sema] Reset a BumpPtrAllocator on clear(). NFC.

Looks like the reset() call was omitted by accident.

Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=288534&r1=288533&r2=288534&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Dec  2 15:00:12 2016
@@ -817,6 +817,7 @@ void OverloadCandidateSet::destroyCandid
 
 void OverloadCandidateSet::clear() {
   destroyCandidates();
+  ConversionSequenceAllocator.Reset();
   NumInlineSequences = 0;
   Candidates.clear();
   Functions.clear();




More information about the cfe-commits mailing list