diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ b/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; diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/include/llvm/IR/IRBuilder.h @@ -77,7 +77,7 @@ std::function Callback; public: - virtual ~IRBuilderCallbackInserter(); + ~IRBuilderCallbackInserter() override; IRBuilderCallbackInserter(std::function Callback) : Callback(std::move(Callback)) {}