diff --git a/llvm/include/llvm/DerivedTypes.h b/llvm/include/llvm/DerivedTypes.h index 10f74dc4f085..add873ce2db5 100644 --- a/llvm/include/llvm/DerivedTypes.h +++ b/llvm/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) {}