Skip to content

Commit 5de9aaf

Browse files
committed
AST: Remove check for '@objc' protocols when computing nested types
This fixes a crash with malformed code with the next patch.
1 parent 96f1cbe commit 5de9aaf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/AST/Type.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,9 +2720,6 @@ void ArchetypeType::populateNestedTypes() const {
27202720
llvm::SmallPtrSet<Identifier, 4> knownNestedTypes;
27212721
ProtocolType::visitAllProtocols(getConformsTo(),
27222722
[&](ProtocolDecl *proto) -> bool {
2723-
// Objective-C protocols don't have type members.
2724-
if (proto->isObjC()) return false;
2725-
27262723
for (auto member : proto->getMembers()) {
27272724
if (auto assocType = dyn_cast<AssociatedTypeDecl>(member)) {
27282725
if (knownNestedTypes.insert(assocType->getName()).second)

0 commit comments

Comments
 (0)