From: John McCall Date: Fri, 11 Mar 2016 05:03:01 +0000 (+0000) Subject: Removing the friend declaration was not a good idea. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=612eea8a21b02346124f671b4fafd8bf064218ab;p=clang Removing the friend declaration was not a good idea. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263194 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h index b532c794b6..a7f3bb976c 100644 --- a/include/clang/CodeGen/CGFunctionInfo.h +++ b/include/clang/CodeGen/CGFunctionInfo.h @@ -507,6 +507,7 @@ public: // Friending class TrailingObjects is apparently not good enough for MSVC, // so these have to be public. + friend class TrailingObjects; size_t numTrailingObjects(OverloadToken) const { return NumArgs + 1; }