From: Alexander Kornienko Date: Wed, 8 Feb 2017 13:28:27 +0000 (+0000) Subject: Adding virtual destructor for PredicateBase. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cad1e238815179bda9e72117aa6367d3a2a36ff;p=llvm Adding virtual destructor for PredicateBase. A virtual destructor is needed, since the derived classes are stored in `iplist AllInfos;` and, apparently, ilist_node doesn't have a virtual destructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294443 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/Utils/PredicateInfo.h b/include/llvm/Transforms/Utils/PredicateInfo.h index 4ee89150ebe..3c4dad90022 100644 --- a/include/llvm/Transforms/Utils/PredicateInfo.h +++ b/include/llvm/Transforms/Utils/PredicateInfo.h @@ -106,6 +106,7 @@ public: PredicateBase(const PredicateBase &) = delete; PredicateBase &operator=(const PredicateBase &) = delete; PredicateBase() = delete; + virtual ~PredicateBase() = default; protected: PredicateBase(PredicateType PT, Value *Op, CmpInst *Comparison)