diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 10f74dc4f08..add873ce2db 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -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 AbstractTypeUsers; + friend class Type; protected: DerivedType(TypeID id) : Type("", id) {}