In a ObjCMessageExpr with the super class as receiver, 'super' is actually a ObjCInterfaceType.
llvm-svn: 124158
This commit is contained in:
parent
8e169a5f18
commit
1b9747fe2c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue