Skip to content

Commit

Permalink
Merge pull request swiftlang#7527 from apple/revert-7513-circular-des…
Browse files Browse the repository at this point in the history
…erialization-fix
  • Loading branch information
swift-ci authored Feb 16, 2017
2 parents 901b73e + d3926d1 commit 63d2ac9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 33 deletions.
11 changes: 1 addition & 10 deletions lib/AST/GenericSignatureBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,16 +554,7 @@ auto GenericSignatureBuilder::PotentialArchetype::getNestedType(
SmallVector<std::pair<ProtocolDecl *, RequirementSource>, 4>
conformsTo(rep->ConformsTo.begin(), rep->ConformsTo.end());
for (auto &conforms : conformsTo) {
// Make sure we don't trigger deserialization of extensions,
// since they can refer back to a protocol we're currently
// type checking.
//
// Note that typealiases in extensions won't matter here,
// because a typealias is never going to be a representative
// PA.
auto members = conforms.first->lookupDirect(nestedName,
/*ignoreNewExtensions=*/true);
for (auto member : members) {
for (auto member : conforms.first->lookupDirect(nestedName)) {
PotentialArchetype *pa;

if (auto assocType = dyn_cast<AssociatedTypeDecl>(member)) {
Expand Down
3 changes: 0 additions & 3 deletions test/Serialization/Inputs/circular-associated-type/a.swift

This file was deleted.

7 changes: 0 additions & 7 deletions test/Serialization/Inputs/circular-associated-type/b.swift

This file was deleted.

5 changes: 0 additions & 5 deletions test/Serialization/Inputs/circular-associated-type/c.swift

This file was deleted.

This file was deleted.

0 comments on commit 63d2ac9

Please sign in to comment.