aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
-rw-r--r--lib/Sema/DeclSpec.cpp7
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.