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 10f74dc4f0851a21ea0762add7cb62ddb62f2525..add873ce2db50a1f2ca2cc8a160f4ae3d62db972 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) {}