diff options
author | John McCall <rjmccall@apple.com> | 2009-09-02 00:55:30 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-09-02 00:55:30 +0000 |
commit | d7eff68dbbbc6b3f8dfd44f6a833c2b320a96e9a (patch) | |
tree | e289f4fe185b5239b61f2fc9e4224349815fe510 /lib/AST/DeclBase.cpp | |
parent | 883f127b28fe6ecffcdf5f86b087fd2c20dbecb8 (diff) |
Ensure that the tag decls of friend decls aren't added to the friending class's
decl list, and remove some workarounds that were due to this. Thanks to Eli for
pointing this out and providing the test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 5 |
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"); } |