[Lldb-commits] [lldb] r358284 - Fix compiler warning introduced by r358261

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 12 06:48:01 PDT 2019


Author: labath
Date: Fri Apr 12 06:48:01 2019
New Revision: 358284

URL: http://llvm.org/viewvc/llvm-project?rev=358284&view=rev
Log:
Fix compiler warning introduced by r358261

Add a virtual destructor to the class with virtual methods.

Modified:
    lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp?rev=358284&r1=358283&r2=358284&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp Fri Apr 12 06:48:01 2019
@@ -160,6 +160,8 @@ private:
 template <typename ResultT = void>
 class FPOProgramASTVisitor {
 protected:
+  virtual ~FPOProgramASTVisitor() = default;
+
   virtual ResultT Visit(FPOProgramNodeBinaryOp &binary,
                         FPOProgramNode *&ref) = 0;
   virtual ResultT Visit(FPOProgramNodeUnaryOp &unary, FPOProgramNode *&ref) = 0;




More information about the lldb-commits mailing list