[clang] 3e32f82 - [clang][dataflow] Fix broken build in ClangStaticAnalyzer

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 30 07:32:02 PST 2021


Author: Yitzhak Mandelbaum
Date: 2021-11-30T15:31:49Z
New Revision: 3e32f827e2647b6fa8022cbc76eac384b3c4e2b4

URL: https://github.com/llvm/llvm-project/commit/3e32f827e2647b6fa8022cbc76eac384b3c4e2b4
DIFF: https://github.com/llvm/llvm-project/commit/3e32f827e2647b6fa8022cbc76eac384b3c4e2b4.diff

LOG: [clang][dataflow] Fix broken build in ClangStaticAnalyzer

Adds a missing virtual destructor.

Added: 
    

Modified: 
    clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h b/clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
index 21647411ef5bd..9448b911f4718 100644
--- a/clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
+++ b/clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
@@ -40,6 +40,8 @@ struct TypeErasedLattice {
 /// Type-erased base class for dataflow analyses built on a single lattice type.
 class TypeErasedDataflowAnalysis {
 public:
+  virtual ~TypeErasedDataflowAnalysis() {}
+
   /// Returns the `ASTContext` that is used by the analysis.
   virtual ASTContext &getASTContext() = 0;
 


        


More information about the cfe-commits mailing list