summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-15 00:29:59 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-15 00:29:59 +0000
commit0b144e160a3129708d1494e88d614cdce2867160 (patch)
treec4ff91808edb92affa8c3f001cfe092f9e59264d /clang/lib/Sema/SemaAccess.cpp
parentdb0f63e3452b58510cf3ef9678d3a9490652dd48 (diff)
downloadbcm5719-llvm-0b144e160a3129708d1494e88d614cdce2867160.tar.gz
bcm5719-llvm-0b144e160a3129708d1494e88d614cdce2867160.zip
Replace all comparisons between ObjCInterfaceDecl pointers with calls
to declaresSameEntity(), as a baby step toward tracking forward declarations of Objective-C classes precisely. Part of <rdar://problem/10583531>. llvm-svn: 146618
Diffstat (limited to 'clang/lib/Sema/SemaAccess.cpp')
-rw-r--r--clang/lib/Sema/SemaAccess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaAccess.cpp b/clang/lib/Sema/SemaAccess.cpp
index 9bb8f616b64..acc19d6c926 100644
--- a/clang/lib/Sema/SemaAccess.cpp
+++ b/clang/lib/Sema/SemaAccess.cpp
@@ -1701,7 +1701,7 @@ bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) {
return false;
// If we're inside the same interface that owns the ivar, we're fine.
- if (ClassOfMethodDecl == Ivar->getContainingInterface())
+ if (declaresSameEntity(ClassOfMethodDecl, Ivar->getContainingInterface()))
return true;
// If the ivar is private, it's inaccessible.
OpenPOWER on IntegriCloud