From: Argyrios Kyrtzidis Date: Tue, 25 Jan 2011 00:03:48 +0000 (+0000) Subject: In a ObjCMessageExpr with the super class as receiver, 'super' is actually a ObjCInte... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee8a6cafe8b69c316dd4fa5f6ea4838ffe15621c;p=clang In a ObjCMessageExpr with the super class as receiver, 'super' is actually a ObjCInterfaceType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index c45fe3497d..cfe89a8fb0 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -2471,9 +2471,9 @@ ObjCInterfaceDecl *ObjCMessageExpr::getReceiverInterface() const { break; case SuperClass: - if (const ObjCObjectPointerType *Iface - = getSuperType()->getAs()) - return Iface->getInterfaceDecl(); + if (const ObjCObjectType *Iface + = getSuperType()->getAs()) + return Iface->getInterface(); break; }