aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/DAGDeltaAlgorithm.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-06-09 03:00:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-06-09 03:00:05 +0000
commit98dc202be01fb34f26d03d4069793974677a4a66 (patch)
treeb23c85f074bceff657de8394a70b4c7a97ba926f /include/llvm/ADT/DAGDeltaAlgorithm.h
parent092f9c116abe9fe95da16815f1a0654a24f3723f (diff)
downloadexternal_llvm-98dc202be01fb34f26d03d4069793974677a4a66.tar.gz
external_llvm-98dc202be01fb34f26d03d4069793974677a4a66.tar.bz2
external_llvm-98dc202be01fb34f26d03d4069793974677a4a66.zip
Fix a gcc warning:
'class llvm::DAGDeltaAlgorithm' has virtual functions and accessible non-virtual destructor Not sure if this is the best solution, but this class has state and some of the classes that inherit from it also do, so it looks appropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DAGDeltaAlgorithm.h')
-rw-r--r--include/llvm/ADT/DAGDeltaAlgorithm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/DAGDeltaAlgorithm.h b/include/llvm/ADT/DAGDeltaAlgorithm.h
index de91282dc4..99ed15c0d6 100644
--- a/include/llvm/ADT/DAGDeltaAlgorithm.h
+++ b/include/llvm/ADT/DAGDeltaAlgorithm.h
@@ -45,6 +45,8 @@ public:
typedef std::vector<changeset_ty> changesetlist_ty;
public:
+ virtual ~DAGDeltaAlgorithm() {}
+
/// Run - Minimize the DAG formed by the \arg Changes vertices and the \arg
/// Dependencies edges by executing \see ExecuteOneTest() on subsets of
/// changes and returning the smallest set which still satisfies the test