]> granicus.if.org Git - clang/commitdiff
In a ObjCMessageExpr with the super class as receiver, 'super' is actually a ObjCInte...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 25 Jan 2011 00:03:48 +0000 (00:03 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 25 Jan 2011 00:03:48 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124158 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index c45fe3497de735ae3c05b32ab607d679d15f5455..cfe89a8fb0f985deedc5710ba8da77eccecd4068 100644 (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;
   }