aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index c24dac9104..acdbdbe422 100644
--- a/lib/AST/DeclBase.cpp
+++ b/lib/AST/DeclBase.cpp
@@ -385,11 +385,6 @@ void Decl::CheckAccessDeclContext() const {
!isa<CXXRecordDecl>(getDeclContext()))
return;
- // FIXME: This check should not be necessary - If a friend decl refers to an
- // undeclared decl, then that decl shouldn't be in any decl context.
- if (getFriendObjectKind() == FOK_Undeclared)
- return;
-
assert(Access != AS_none &&
"Access specifier is AS_none inside a record decl");
}