In a ObjCMessageExpr with the super class as receiver, 'super' is actually a ObjCInterfaceType.

llvm-svn: 124158
This commit is contained in:
Argyrios Kyrtzidis 2011-01-25 00:03:48 +00:00
parent 8e169a5f18
commit 1b9747fe2c
1 changed files with 3 additions and 3 deletions

View File

@ -2471,9 +2471,9 @@ ObjCInterfaceDecl *ObjCMessageExpr::getReceiverInterface() const {
break;
case SuperClass:
if (const ObjCObjectPointerType *Iface
= getSuperType()->getAs<ObjCObjectPointerType>())
return Iface->getInterfaceDecl();
if (const ObjCObjectType *Iface
= getSuperType()->getAs<ObjCObjectType>())
return Iface->getInterface();
break;
}