mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Break some cycles
Computing the generic signature changes the way that cycles appear in the compiler. For now, break these cycles. We should investigate each place where hasComputedGenericSignature() is used in service of breaking cycles. See rdar://55263708
This commit is contained in:
@@ -501,7 +501,9 @@ Type ConstraintSystem::openUnboundGenericType(UnboundGenericType *unbound,
|
||||
|
||||
// If the unbound decl hasn't been validated yet, we have a circular
|
||||
// dependency that isn't being diagnosed properly.
|
||||
if (!unboundDecl->getGenericSignature()) {
|
||||
//
|
||||
// FIXME: Delete this condition. He's dead Jim.
|
||||
if (!unboundDecl->hasComputedGenericSignature()) {
|
||||
TC.diagnose(unboundDecl, diag::circular_reference);
|
||||
return Type();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user