Fix class SCEVPredicate has virtual functions and accessible non-virtual destructor
authorAndy Gibbs <andyg1001@hotmail.co.uk>
Wed, 2 Dec 2015 13:41:24 +0000 (13:41 +0000)
committerAndy Gibbs <andyg1001@hotmail.co.uk>
Wed, 2 Dec 2015 13:41:24 +0000 (13:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254508 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h

index da8c68aa6832a0dd655266596ee31e82b5b791e9..0000b42391af2602bfdfd0fec027cf89be66c585 100644 (file)
@@ -183,7 +183,7 @@ namespace llvm {
 
   protected:
     SCEVPredicateKind Kind;
-    ~SCEVPredicate() = default;
+    virtual ~SCEVPredicate() = default;
     SCEVPredicate(const SCEVPredicate&) = default;
     SCEVPredicate &operator=(const SCEVPredicate&) = default;