From 319a05fb4c167f0fdd189b03e2a743e44385ba93 Mon Sep 17 00:00:00 2001 From: Kuter Dinel Date: Fri, 18 Jun 2021 07:30:31 +0300 Subject: [PATCH] [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 --- include/llvm/Transforms/IPO/Attributor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Transforms/IPO/Attributor.h b/include/llvm/Transforms/IPO/Attributor.h index 5cad4c52d21..439c0a4f079 100644 --- a/include/llvm/Transforms/IPO/Attributor.h +++ b/include/llvm/Transforms/IPO/Attributor.h @@ -3882,6 +3882,7 @@ private: 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, // 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());