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;