diff options
author | John McCall <rjmccall@apple.com> | 2010-10-16 06:59:13 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-16 06:59:13 +0000 |
commit | 6102ca1d490836096678d7d934f0b2b78f9293ec (patch) | |
tree | 6d041c075fd523574c5c35fe985aa38d698d5b43 /lib/Serialization/ASTReaderDecl.cpp | |
parent | b10ce9f4fcff51bebc9efaeda2fa15b6478c6aec (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTReaderDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index c89273567e..05ade63719 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -908,6 +908,7 @@ void ASTDeclReader::VisitFriendDecl(FriendDecl *D) { else D->Friend = cast<NamedDecl>(Reader.GetDecl(Record[Idx++])); D->NextFriend = cast_or_null<FriendDecl>(Reader.GetDecl(Record[Idx++])); + D->UnsupportedFriend = (Record[Idx++] != 0); D->FriendLoc = ReadSourceLocation(Record, Idx); } |