summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-08-12 20:46:12 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-08-12 20:46:12 +0000
commit753783a06290b216e35e01c90841a219d9f96271 (patch)
tree11e76c847588310bd88bd95d9d7619c9594e05ad /clang/lib/AST/ASTContext.cpp
parent0910689353172d68f16293c35e9afdfcdd9cc506 (diff)
downloadbcm5719-llvm-753783a06290b216e35e01c90841a219d9f96271.tar.gz
bcm5719-llvm-753783a06290b216e35e01c90841a219d9f96271.zip
Fixes block type matching bug. Radar 8302845.
llvm-svn: 110950
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 8051dca5a6a..988bedb1c03 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -4336,7 +4336,7 @@ bool ASTContext::ObjCQualifiedIdTypesAreCompatible(QualType lhs, QualType rhs,
// when comparing an id<P> on rhs with a static type on lhs,
// static class must implement all of id's protocols directly or
// indirectly through its super class.
- if (lhsID->ClassImplementsProtocol(*I, false)) {
+ if (lhsID->ClassImplementsProtocol(*I, true)) {
match = true;
break;
}
OpenPOWER on IntegriCloud