summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-12 15:48:15 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-12 15:48:15 +0000
commitfc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34 (patch)
treee298dfeac1552e5af7492645fe77c69e19eeacb3 /clang/lib/Sema/DeclSpec.cpp
parentb63ab9477c8e1f7658a6249c181a5b953b08178f (diff)
downloadbcm5719-llvm-fc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34.tar.gz
bcm5719-llvm-fc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34.zip
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. llvm-svn: 139497
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index 531e7a535a3..bb483cc9b10 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud