diff options
author | Steve Naroff <snaroff@apple.com> | 2009-02-12 17:52:19 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-02-12 17:52:19 +0000 |
commit | b76051534ce32aca680c51ea43e2d67cba2e2851 (patch) | |
tree | 80ebd09557964d40ad456c14f78bf34360dfd189 /clang/lib/Analysis/CFRefCount.cpp | |
parent | 844deb73f4b773c919a7a2f8e8ce5c45052aa5e4 (diff) | |
download | bcm5719-llvm-b76051534ce32aca680c51ea43e2d67cba2e2851.tar.gz bcm5719-llvm-b76051534ce32aca680c51ea43e2d67cba2e2851.zip |
Several cleanups:
- rename isObjCIdType/isObjCClassType -> isObjCIdStructType/isObjCClassStructType. The previous name didn't do what you would expect.
- add back isObjCIdType/isObjCClassType to do what you would expect. Not currently used, however many of the isObjCIdStructType/isObjCClassStructType clients could be converted over time.
- move static Sema function areComparableObjCInterfaces to ASTContext (renamed to areComparableObjCPointerTypes, since it now operates on pointer types).
llvm-svn: 64385
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 662b2f5f97b..5d8e4f2badf 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1449,7 +1449,7 @@ static QualType GetReturnType(Expr* RetE, ASTContext& Ctx) { ObjCMessageExpr* ME = dyn_cast<ObjCMessageExpr>(RetE); - if (!ME || !Ctx.isObjCIdType(PT->getPointeeType())) + if (!ME || !Ctx.isObjCIdStructType(PT->getPointeeType())) return RetTy; ObjCInterfaceDecl* D = ME->getClassInfo().first; |