aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/Analyzer.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-08 16:40:19 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-08 16:40:19 +0000
commitc2350e553b853ad00914faf23fa731e5fc4a8a5c (patch)
treeb6a23f0ab6bac619e1343ee290093c2733afc129 /lib/Index/Analyzer.cpp
parent4bc1cb6aa635a5bf8fae99bf69c56c724c1e786c (diff)
Extend ObjCMessageExpr for class method sends with the source location
of the class name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Analyzer.cpp')
-rw-r--r--lib/Index/Analyzer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Index/Analyzer.cpp b/lib/Index/Analyzer.cpp
index fb3529d540..7b414f2a9f 100644
--- a/lib/Index/Analyzer.cpp
+++ b/lib/Index/Analyzer.cpp
@@ -177,7 +177,7 @@ public:
if (IsInstanceMethod)
return false;
- MsgD = Msg->getClassInfo().first;
+ MsgD = Msg->getClassInfo().Decl;
// FIXME: Case when we only have an identifier.
assert(MsgD && "Identifier only");
}
@@ -250,7 +250,7 @@ public:
while (true) {
if (Msg->getReceiver() == 0) {
CanBeClassMethod = true;
- MsgD = Msg->getClassInfo().first;
+ MsgD = Msg->getClassInfo().Decl;
// FIXME: Case when we only have an identifier.
assert(MsgD && "Identifier only");
break;