Skip to content

Commit 321d9b7

Browse files
committed
Remove a dead cycle check
1 parent 2df956a commit 321d9b7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -498,16 +498,6 @@ Type ConstraintSystem::openUnboundGenericType(UnboundGenericType *unbound,
498498
ConstraintLocatorBuilder locator,
499499
OpenedTypeMap &replacements) {
500500
auto unboundDecl = unbound->getDecl();
501-
502-
// If the unbound decl hasn't been validated yet, we have a circular
503-
// dependency that isn't being diagnosed properly.
504-
//
505-
// FIXME: Delete this condition. He's dead Jim.
506-
if (!unboundDecl->hasComputedGenericSignature()) {
507-
TC.diagnose(unboundDecl, diag::circular_reference);
508-
return Type();
509-
}
510-
511501
auto parentTy = unbound->getParent();
512502
if (parentTy) {
513503
parentTy = openUnboundGenericType(parentTy, locator);

0 commit comments

Comments
 (0)