Skip to content

Commit 03373a1

Browse files
committed
AST: Micro-optimize ProtocolType::visitAllProtocols()
1 parent 2cd6a03 commit 03373a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,7 +2621,7 @@ void ArchetypeType::populateNestedTypes() const {
26212621
ProtocolType::visitAllProtocols(getConformsTo(),
26222622
[&](ProtocolDecl *proto) -> bool {
26232623
// Objective-C protocols don't have type members.
2624-
if (proto->hasClangNode()) return false;
2624+
if (proto->isObjC()) return false;
26252625

26262626
for (auto member : proto->getMembers()) {
26272627
if (auto assocType = dyn_cast<AssociatedTypeDecl>(member)) {

0 commit comments

Comments
 (0)