From: Matt Arsenault Date: Sat, 19 Jul 2014 19:16:36 +0000 (+0000) Subject: Fix build with GCC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b54c238b6bacb072c5562bc48005ca5eea3b4a1;p=platform%2Fupstream%2Fllvm.git Fix build with GCC. Seems like a bug in either GCC or clang, but I'm not sure which is right. llvm-svn: 213460 --- diff --git a/llvm/include/llvm/Analysis/RegionInfo.h b/llvm/include/llvm/Analysis/RegionInfo.h index cdf8277..40c43db 100644 --- a/llvm/include/llvm/Analysis/RegionInfo.h +++ b/llvm/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;