DeltaAlgorithm: Add a virtual destructor and home.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 9 Dec 2009 07:19:48 +0000 (07:19 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 9 Dec 2009 07:19:48 +0000 (07:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90957 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DeltaAlgorithm.h
lib/Support/DeltaAlgorithm.cpp

index 0cf7c7c4665b3c6ab46da033039d94663ba38792..1facfa0c4476dc0639611df9faf2139bcc4ea8fe 100644 (file)
@@ -78,6 +78,8 @@ protected:
   virtual bool ExecuteOneTest(const changeset_ty &S) = 0;
 
 public:
+  virtual ~DeltaAlgorithm();
+
   /// Run - Minimize the set \arg Changes by executing \see ExecuteOneTest() on
   /// subsets of changes and returning the smallest set which still satisfies
   /// the test predicate.
index f85ca300ab98129058855b3338384ce33cbb8212..d176548189191e5f93ea4ded9e82b76c89f3cebb 100644 (file)
@@ -11,6 +11,9 @@
 #include <iterator>
 using namespace llvm;
 
+DeltaAlgorithm::~DeltaAlgorithm() {
+}
+
 bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) {
   if (FailedTestsCache.count(Changes))
     return false;