[llvm] a78671e - [FIX][Attributor] Fix broken build due to missing virtual deconstructors.

Kuter Dinel via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 18:34:03 PDT 2021


Author: Kuter Dinel
Date: 2021-06-18T07:32:51+03:00
New Revision: a78671ef54e53196dc7b5ee9c91771c8e146d1d1

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

LOG: [FIX][Attributor] Fix broken build due to missing virtual deconstructors.

The lack some virtual deconstructors where causing some builds bots to fail.
This patch fixes that.

Problematic commit:
https://reviews.llvm.org/rGeaf1b6810ce0f40008b2b1d902750eafa3e198d3

Build bot:
https://lab.llvm.org/buildbot/#/builders/18/builds/1741

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/Attributor.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 5cad4c52d219..439c0a4f079f 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -3882,6 +3882,7 @@ class AACallEdgeIterator
 
 struct AACallGraphNode {
   AACallGraphNode(Attributor &A) : A(A) {}
+  virtual ~AACallGraphNode() {}
 
   virtual AACallEdgeIterator optimisticEdgesBegin() const = 0;
   virtual AACallEdgeIterator optimisticEdgesEnd() const = 0;
@@ -3944,6 +3945,7 @@ struct AACallEdges : public StateWrapper<BooleanState, AbstractAttribute>,
 // Synthetic root node for the Attributor's internal call graph.
 struct AttributorCallGraph : public AACallGraphNode {
   AttributorCallGraph(Attributor &A) : AACallGraphNode(A) {}
+  virtual ~AttributorCallGraph() {}
 
   AACallEdgeIterator optimisticEdgesBegin() const override {
     return AACallEdgeIterator(A, A.Functions.begin());


        


More information about the llvm-commits mailing list