Fix class SCEVPredicate has virtual functions and accessible non-virtual destructor
[oota-llvm.git] / 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;