diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-15 00:29:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-15 00:29:59 +0000 |
commit | 60ef308e51c71b760d7f598c1b763ceb7b768148 (patch) | |
tree | ffdc4265cafc6594b04a4d36f629da15a892aa17 /lib/Index/Analyzer.cpp | |
parent | 643d3ce93c501d19353f2fa578fee3e97f1d1b4b (diff) |
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>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Analyzer.cpp')
-rw-r--r-- | lib/Index/Analyzer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Index/Analyzer.cpp b/lib/Index/Analyzer.cpp index 6be35ab4a3..f77e6ef92d 100644 --- a/lib/Index/Analyzer.cpp +++ b/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; |