diff options
author | John McCall <rjmccall@apple.com> | 2010-03-12 01:19:31 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-12 01:19:31 +0000 |
commit | d60e22e601852ae1345f01514318a0951dc09f89 (patch) | |
tree | 96d5f68f1e7be5c6142fae6ef878844107355495 /lib/AST/DeclFriend.cpp | |
parent | 2d2f9368d35b3628c7e3b4563f74849a0f901a00 (diff) |
Implement basic support for friend types and functions in non-dependent
contexts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclFriend.cpp')
-rw-r--r-- | lib/AST/DeclFriend.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/DeclFriend.cpp b/lib/AST/DeclFriend.cpp index 8c7cadfbf7..ab3552db28 100644 --- a/lib/AST/DeclFriend.cpp +++ b/lib/AST/DeclFriend.cpp @@ -35,5 +35,7 @@ FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, } #endif - return new (C) FriendDecl(DC, L, Friend, FriendL); + FriendDecl *FD = new (C) FriendDecl(DC, L, Friend, FriendL); + cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); + return FD; } |