diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-25 00:03:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-25 00:03:48 +0000 |
commit | ee8a6cafe8b69c316dd4fa5f6ea4838ffe15621c (patch) | |
tree | 08bd83bdb3a869507b7b2628353acd58774e65eb /lib/AST/Expr.cpp | |
parent | 090c47baf01394de7a4061740ae7bb1f7c26492a (diff) |
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
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<ObjCObjectPointerType>()) - return Iface->getInterfaceDecl(); + if (const ObjCObjectType *Iface + = getSuperType()->getAs<ObjCObjectType>()) + return Iface->getInterface(); break; } |