aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-08-20 07:19:42 +0000
committerJohn McCall <rjmccall@apple.com>2009-08-20 07:19:42 +0000
commitf18970d1dd3a88b7a50e9abd4fd4ceef675a8a2e (patch)
tree9a1592caad17e80d6d2631f2a53680941601ff61 /lib
parent43959a93c6aba8b03b09116fe077f4ce8e80005e (diff)
Add syntax examples for the friend declaration types.
Remove an assert trivialized by dominating code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index e2aee5b136..aa4ac8f1b0 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -3422,7 +3422,6 @@ Sema::DeclPtrTy Sema::ActOnFriendDecl(Scope *S,
// The record declaration we get from friend declarations is not
// canonicalized; see ActOnTag.
- assert(RD);
// C++ [class.friend]p2: A class shall not be defined inside
// a friend declaration.