aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/DeltaAlgorithm.h2
-rw-r--r--lib/Support/DeltaAlgorithm.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/DeltaAlgorithm.h b/include/llvm/ADT/DeltaAlgorithm.h
index 0cf7c7c466..1facfa0c44 100644
--- a/include/llvm/ADT/DeltaAlgorithm.h
+++ b/include/llvm/ADT/DeltaAlgorithm.h
@@ -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.
diff --git a/lib/Support/DeltaAlgorithm.cpp b/lib/Support/DeltaAlgorithm.cpp
index f85ca300ab..d176548189 100644
--- a/lib/Support/DeltaAlgorithm.cpp
+++ b/lib/Support/DeltaAlgorithm.cpp
@@ -11,6 +11,9 @@
#include <iterator>
using namespace llvm;
+DeltaAlgorithm::~DeltaAlgorithm() {
+}
+
bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) {
if (FailedTestsCache.count(Changes))
return false;