diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-12 15:48:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-12 15:48:15 +0000 |
commit | f3a762a8de396af471f35b77f6897989867c898e (patch) | |
tree | bcc9e4f8c93a41990c3536cf614ac955b0b88bc3 /lib/Sema/DeclSpec.cpp | |
parent | eced60c185c92a34953090b98d8458fb2df9dc81 (diff) |
Remove the restriction on module-private friends. Since the friend
declaration may be the first declaration, we want the ability to that
declaration to be marked module-private.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
-rw-r--r-- | lib/Sema/DeclSpec.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/DeclSpec.cpp b/lib/Sema/DeclSpec.cpp index 531e7a535a..bb483cc9b1 100644 --- a/lib/Sema/DeclSpec.cpp +++ b/lib/Sema/DeclSpec.cpp @@ -899,13 +899,6 @@ void DeclSpec::Finish(Diagnostic &D, Preprocessor &PP) { ClearStorageClassSpecs(); } - // A friend cannot be specified as module-private. - if (isFriendSpecified() && isModulePrivateSpecified()) { - Diag(D, ModulePrivateLoc, diag::err_module_private_friend) - << FixItHint::CreateRemoval(ModulePrivateLoc); - ModulePrivateLoc = SourceLocation(); - } - assert(!TypeSpecOwned || isDeclRep((TST) TypeSpecType)); // Okay, now we can infer the real type. |