Sema: Fix non-@objc AnyObject on Linux, again...

Swift SVN r29745
This commit is contained in:
Slava Pestov
2015-06-26 18:59:17 +00:00
parent 3be416ba3d
commit f06fe9efe9

View File

@@ -775,7 +775,8 @@ LookupConformanceResult Module::lookupConformance(Type type,
// existential to an archetype parameter, so for now we restrict this to
// @objc protocols.
for (auto proto : protocols) {
if (!proto->isObjC())
if (!proto->isObjC() &&
!proto->isSpecificProtocol(KnownProtocolKind::AnyObject))
return { nullptr, ConformanceKind::DoesNotConform };
}