diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h index 0aca1ab96d3f..d1563efb09e7 100644 --- a/llvm/include/llvm/Transforms/Utils/Cloning.h +++ b/llvm/include/llvm/Transforms/Utils/Cloning.h @@ -147,7 +147,7 @@ public: StopCloningBB }; - virtual ~CloningDirector() = default; + virtual ~CloningDirector() {} /// Subclasses must override this function to customize cloning behavior. virtual CloningAction handleInstruction(ValueToValueMapTy &VMap, diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index d96506424417..422ef5adc1de 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -96,7 +96,6 @@ public: Materializer(CatchFn, VarInfo), SelectorIDType(Type::getInt32Ty(LPI->getContext())), Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {} - virtual ~WinEHCatchDirector() = default; CloningAction handleInstruction(ValueToValueMapTy &VMap, const Instruction *Inst,