diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-08 16:40:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-08 16:40:19 +0000 |
commit | de4827dd340b77640b4cead98502148d8a5bcf70 (patch) | |
tree | 348c444a659bbb7e245e5fe8c2cbdd6daecc1485 /clang/lib/Checker/CFRefCount.cpp | |
parent | 12852d9521243840968d38e9e4ee704f3713c3dd (diff) | |
download | bcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.tar.gz bcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.zip |
Extend ObjCMessageExpr for class method sends with the source location
of the class name.
llvm-svn: 97943
Diffstat (limited to 'clang/lib/Checker/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Checker/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp index ecb98a0496f..9a76f6a2a3a 100644 --- a/clang/lib/Checker/CFRefCount.cpp +++ b/clang/lib/Checker/CFRefCount.cpp @@ -853,7 +853,7 @@ public: RetainSummary *getClassMethodSummary(const ObjCMessageExpr *ME) { return getClassMethodSummary(ME->getSelector(), ME->getClassName(), - ME->getClassInfo().first, + ME->getClassInfo().Decl, ME->getMethodDecl(), ME->getType()); } @@ -2511,7 +2511,7 @@ static QualType GetReturnType(const Expr* RetE, ASTContext& Ctx) { // id, id<...>, or Class. If we have an ObjCInterfaceDecl, we know this // is a call to a class method whose type we can resolve. In such // cases, promote the return type to XXX* (where XXX is the class). - const ObjCInterfaceDecl *D = ME->getClassInfo().first; + const ObjCInterfaceDecl *D = ME->getClassInfo().Decl; return !D ? RetTy : Ctx.getPointerType(Ctx.getObjCInterfaceType(D)); } |