summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-16 06:59:13 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-16 06:59:13 +0000
commit2c2eb12d9c895b2174788f5068f106e5e933bbfc (patch)
treedb885535fc5fa507a44cee8d9783717cf82fa1d3 /clang/lib/Serialization/ASTWriterDecl.cpp
parent622581b73bf9466eaa79deb336613e42eef7d68d (diff)
downloadbcm5719-llvm-2c2eb12d9c895b2174788f5068f106e5e933bbfc.tar.gz
bcm5719-llvm-2c2eb12d9c895b2174788f5068f106e5e933bbfc.zip
White-listing templated-scope friend decls is a good idea, but doing it
by marking the decl invalid isn't. Make some steps towards supporting these and then hastily shut them down at the last second by marking them as unsupported. llvm-svn: 116661
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 0dcc822fbc9..bf7c259635f 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -835,6 +835,7 @@ void ASTDeclWriter::VisitFriendDecl(FriendDecl *D) {
else
Writer.AddDeclRef(D->Friend.get<NamedDecl*>(), Record);
Writer.AddDeclRef(D->NextFriend, Record);
+ Record.push_back(D->UnsupportedFriend);
Writer.AddSourceLocation(D->FriendLoc, Record);
Code = serialization::DECL_FRIEND;
}
OpenPOWER on IntegriCloud