OSDN Git Service

Get friendly with Type
authorChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 19:21:43 +0000 (19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 19:21:43 +0000 (19:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16812 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DerivedTypes.h

index 10f74dc..add873c 100644 (file)
@@ -35,6 +35,7 @@ class DerivedType : public Type, public AbstractTypeUser {
   // if I am a type, and I get resolved into a more concrete type.
   //
   mutable std::vector<AbstractTypeUser *> AbstractTypeUsers;
+  friend class Type;
 
 protected:
   DerivedType(TypeID id) : Type("", id) {}