diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-27 20:23:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-27 20:23:41 +0000 |
commit | 69aecc6252bf4a5ee59f9b51c3728ea07b6342bf (patch) | |
tree | 78afe5106b08dc881546fb8811f76c12b02bb8e6 /lib/Serialization/ASTWriterDecl.cpp | |
parent | 500b782d51541a5f20f3113305bc3842fba8b77a (diff) |
Lazily load the next friend in the chain of FriendDecls, to eliminate
some excessive recursion and deserialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 4e479b33de..46f62b7d84 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp @@ -803,7 +803,7 @@ void ASTDeclWriter::VisitFriendDecl(FriendDecl *D) { Writer.AddTypeSourceInfo(D->Friend.get<TypeSourceInfo*>(), Record); else Writer.AddDeclRef(D->Friend.get<NamedDecl*>(), Record); - Writer.AddDeclRef(D->NextFriend, Record); + Writer.AddDeclRef(D->getNextFriend(), Record); Record.push_back(D->UnsupportedFriend); Writer.AddSourceLocation(D->FriendLoc, Record); Code = serialization::DECL_FRIEND; |