[llvm] r213460 - Fix build with GCC.

Matt Arsenault Matthew.Arsenault at amd.com
Sat Jul 19 12:16:36 PDT 2014


Author: arsenm
Date: Sat Jul 19 14:16:36 2014
New Revision: 213460

URL: http://llvm.org/viewvc/llvm-project?rev=213460&view=rev
Log:
Fix build with GCC.

Seems like a bug in either GCC or clang, but I'm
not sure which is right.

Modified:
    llvm/trunk/include/llvm/Analysis/RegionInfo.h

Modified: llvm/trunk/include/llvm/Analysis/RegionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/RegionInfo.h?rev=213460&r1=213459&r2=213460&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/RegionInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/RegionInfo.h Sat Jul 19 14:16:36 2014
@@ -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<Tr>::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<Tr>::getParent();
+  }
 
   /// @brief Get the RegionNode representing the current Region.
   /// @return The RegionNode representing the current Region.
@@ -666,7 +670,7 @@ class RegionInfoBase {
   typedef SmallPtrSet<RegionT *, 4> RegionSet;
 
   RegionInfoBase();
-  ~RegionInfoBase();
+  virtual ~RegionInfoBase();
 
   RegionInfoBase(const RegionInfoBase &) LLVM_DELETED_FUNCTION;
   const RegionInfoBase &operator=(const RegionInfoBase &) LLVM_DELETED_FUNCTION;





More information about the llvm-commits mailing list