Index: llvm/include/llvm/Analysis/ScalarEvolution.h =================================================================== --- llvm/include/llvm/Analysis/ScalarEvolution.h +++ llvm/include/llvm/Analysis/ScalarEvolution.h @@ -224,7 +224,7 @@ protected: SCEVPredicateKind Kind; - ~SCEVPredicate() = default; + virtual ~SCEVPredicate() = default; SCEVPredicate(const SCEVPredicate &) = default; SCEVPredicate &operator=(const SCEVPredicate &) = default; Index: llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h =================================================================== --- llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h @@ -118,7 +118,7 @@ WithColor::defaultErrorHandler, std::function WarningHandler = WithColor::defaultWarningHandler); - ~DWARFContext(); + ~DWARFContext() override; DWARFContext(DWARFContext &) = delete; DWARFContext &operator=(DWARFContext &) = delete; Index: llvm/include/llvm/IR/IRBuilder.h =================================================================== --- llvm/include/llvm/IR/IRBuilder.h +++ llvm/include/llvm/IR/IRBuilder.h @@ -77,7 +77,7 @@ std::function Callback; public: - virtual ~IRBuilderCallbackInserter(); + virtual ~IRBuilderCallbackInserter() override; IRBuilderCallbackInserter(std::function Callback) : Callback(std::move(Callback)) {}