aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-20 03:26:10 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-20 03:26:10 +0000
commit72c4c15e030cabf71cffc899ca779a251bcc72d1 (patch)
tree050fc9def0224941b09feadd73b861adfba81524 /lib/Sema/SemaAccess.cpp
parentbf5e09d185275a1942223ecb58e20c2d88dcc340 (diff)
Revert r111609, which is failing its new test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaAccess.cpp')
-rw-r--r--lib/Sema/SemaAccess.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp
index e2b7a7e061..90d3177222 100644
--- a/lib/Sema/SemaAccess.cpp
+++ b/lib/Sema/SemaAccess.cpp
@@ -514,9 +514,6 @@ static AccessResult MatchesFriend(Sema &S,
static AccessResult MatchesFriend(Sema &S,
const EffectiveContext &EC,
FriendDecl *FriendD) {
- if (FriendD->isInvalidDecl())
- return AR_accessible;
-
if (TypeSourceInfo *T = FriendD->getFriendType())
return MatchesFriend(S, EC, T->getType()->getCanonicalTypeUnqualified());