summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
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/Index
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/Index')
-rw-r--r--clang/lib/Index/Analyzer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Index/Analyzer.cpp b/clang/lib/Index/Analyzer.cpp
index 6be35ab4a37..f77e6ef92d6 100644
--- a/clang/lib/Index/Analyzer.cpp
+++ b/clang/lib/Index/Analyzer.cpp
@@ -205,7 +205,7 @@ public:
assert(MsgD);
// Same interface ? We have a winner!
- if (MsgD == IFace)
+ if (declaresSameEntity(MsgD, IFace))
return true;
// If the message interface is a superclass of the original interface,
@@ -220,7 +220,7 @@ public:
if (IFace) {
Selector Sel = Msg->getSelector();
for (ObjCInterfaceDecl *Cls = MsgD; Cls; Cls = Cls->getSuperClass()) {
- if (Cls == IFace)
+ if (declaresSameEntity(Cls, IFace))
return true;
if (Cls->getMethod(Sel, IsInstanceMethod))
return false;
OpenPOWER on IntegriCloud