summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-03-03 15:43:24 +0000
committerSteve Naroff <snaroff@apple.com>2009-03-03 15:43:24 +0000
commit3e1181e2e9b7b849621dc5d75723b3fd1abf3873 (patch)
tree8a1fda0b6c7e1eb610423d7f4f5dd578183dda81 /clang/lib/Sema/SemaExprObjC.cpp
parent157599fe1cc7ba669dc81174db708fab025023fb (diff)
downloadbcm5719-llvm-3e1181e2e9b7b849621dc5d75723b3fd1abf3873.tar.gz
bcm5719-llvm-3e1181e2e9b7b849621dc5d75723b3fd1abf3873.zip
Fix <rdar://problem/6497242> Inherited overridden protocol declared objects don't work.
Change Sema::DiagnosePropertyMismatch() to check for type compatibility (rather than type equivalence, which is too strict). llvm-svn: 65949
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index f571068822f..8b452af9e85 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -540,6 +540,7 @@ static bool ClassImplementsProtocol(ObjCProtocolDecl *lProto,
/// ObjCQualifiedIdTypesAreCompatible - We know that one of lhs/rhs is an
/// ObjCQualifiedIDType.
+/// FIXME: Move to ASTContext::typesAreCompatible() and friends.
bool Sema::ObjCQualifiedIdTypesAreCompatible(QualType lhs, QualType rhs,
bool compare) {
// Allow id<P..> and an 'id' or void* type in all cases.
OpenPOWER on IntegriCloud