Skip to content

Commit 8628f0a

Browse files
authored
Merge pull request #17359 from dcci/reco-assoc-try-again
2 parents 59e3450 + 0a6c3e3 commit 8628f0a

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

lib/IDE/TypeReconstruction.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -748,27 +748,6 @@ static void VisitNodeAssociatedTypeRef(
748748
return;
749749
}
750750
}
751-
ProtocolType *protocol_type = type->getAs<ProtocolType>();
752-
if (protocol_type) {
753-
Identifier assoc_id = ast->getIdentifier(ident->getText());
754-
ProtocolDecl *protocol_decl = protocol_type->getDecl();
755-
AssociatedTypeDecl *associated = nullptr;
756-
for (auto member : protocol_decl->getMembers()) {
757-
auto *atd = dyn_cast<AssociatedTypeDecl>(member);
758-
if (!atd)
759-
continue;
760-
if (assoc_id == atd->getName()) {
761-
associated = atd;
762-
break;
763-
}
764-
}
765-
if (associated) {
766-
result._types.push_back(
767-
DependentMemberType::get(protocol_type, assoc_id));
768-
result._module = type_result._module;
769-
return;
770-
}
771-
}
772751
}
773752
}
774753
result._types.clear();

test/DebugInfo/Inputs/type-reconstr-names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ $S7ElementQzD ---> τ_0_0.Element
99
$S13EyeCandySwift21_previousUniqueNumber33_ADC08935D64EA4F796440E7335798735LLs6UInt64Vvp ---> UInt64
1010
$SSayypXpG ---> Array<Any.Type>
1111
$S12EyeCandyCore11XPCListenerC14messageHandleryyAA13XPCConnectionV_AA10XPCMessageVxtcvpfiyAF_AHxtcfU_TA.4 ---> Can't resolve type of $S12EyeCandyCore11XPCListenerC14messageHandleryyAA13XPCConnectionV_AA10XPCMessageVxtcvpfiyAF_AHxtcfU_TA.4
12-
$Ss10CollectionP7ElementQa ---> Collection.Element
12+
$Ss10CollectionP7ElementQa ---> Can't resolve type of $Ss10CollectionP7ElementQa

0 commit comments

Comments
 (0)