Skip to content

Commit 121e1aa

Browse files
committed
[Generic signature builder] Eliminate hack that performs an extra walk of potential archetypes.
1 parent 73b1df3 commit 121e1aa

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,13 +2444,6 @@ GenericSignatureBuilder::finalize(SourceLoc loc,
24442444
}
24452445
});
24462446

2447-
// Create anchors for all of the potential archetypes.
2448-
// FIXME: This is because we might be missing some from the equivalence
2449-
// classes. It is an egregious hack.
2450-
visitPotentialArchetypes([&](PotentialArchetype *archetype) {
2451-
(void)archetype->getArchetypeAnchor(*this);
2452-
});
2453-
24542447
SmallPtrSet<PotentialArchetype *, 4> visited;
24552448

24562449
// Check for generic parameters which have been made concrete or equated

0 commit comments

Comments
 (0)