From a80d6a07a1ced528016fb15dfa48be7bf507f035 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 19 Jul 2014 19:16:36 +0000 Subject: [PATCH] Fix build with GCC. Seems like a bug in either GCC or clang, but I'm not sure which is right. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213460 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/RegionInfo.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h index cdf8277e02c..40c43db7104 100644 --- a/include/llvm/Analysis/RegionInfo.h +++ b/include/llvm/Analysis/RegionInfo.h @@ -312,7 +312,9 @@ public: /// @brief Get the entry BasicBlock of the Region. /// @return The entry BasicBlock of the region. - BlockT *getEntry() const { return RegionNodeT::getEntry(); } + BlockT *getEntry() const { + return RegionNodeBase::getEntry(); + } /// @brief Replace the entry basic block of the region with the new basic /// block. @@ -352,7 +354,9 @@ public: /// @brief Get the parent of the Region. /// @return The parent of the Region or NULL if this is a top level /// Region. - RegionT *getParent() const { return RegionNodeT::getParent(); } + RegionT *getParent() const { + return RegionNodeBase::getParent(); + } /// @brief Get the RegionNode representing the current Region. /// @return The RegionNode representing the current Region. @@ -666,7 +670,7 @@ class RegionInfoBase { typedef SmallPtrSet RegionSet; RegionInfoBase(); - ~RegionInfoBase(); + virtual ~RegionInfoBase(); RegionInfoBase(const RegionInfoBase &) LLVM_DELETED_FUNCTION; const RegionInfoBase &operator=(const RegionInfoBase &) LLVM_DELETED_FUNCTION; -- 2.11.0