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/Sema/SemaExprObjC.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/Sema/SemaExprObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index 32ff7ff1636..7629987f040 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -485,11 +485,11 @@ bool Sema::ObjCQualifiedIdTypesAreCompatible(QualType lhs, QualType rhs, // Allow id<P..> and an 'id' or void* type in all cases. if (const PointerType *PT = lhs->getAsPointerType()) { QualType PointeeTy = PT->getPointeeType(); - if (Context.isObjCIdType(PointeeTy) || PointeeTy->isVoidType()) + if (Context.isObjCIdStructType(PointeeTy) || PointeeTy->isVoidType()) return true; } else if (const PointerType *PT = rhs->getAsPointerType()) { QualType PointeeTy = PT->getPointeeType(); - if (Context.isObjCIdType(PointeeTy) || PointeeTy->isVoidType()) + if (Context.isObjCIdStructType(PointeeTy) || PointeeTy->isVoidType()) return true; } |