diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp index 88942fdebffa..421c8284edb6 100644 --- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp @@ -216,7 +216,7 @@ class GlobalTypeMember final : TrailingObjects { GlobalObject *GO; size_t NTypes; - friend class TrailingObjects; + friend TrailingObjects; size_t numTrailingObjects(OverloadToken) const { return NTypes; } public: