Skip to content

Commit b208655

Browse files
committed
Sema: Remove dead code
1 parent f49619a commit b208655

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/Sema/TypeCheckGeneric.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -792,18 +792,6 @@ GenericSignatureRequest::evaluate(Evaluator &evaluator,
792792
parentSig = extendedNominal->getGenericSignatureOfContext();
793793
genericParams = nullptr;
794794
}
795-
796-
// Re-use the signature of the type being extended by default.
797-
// For tuple extensions, always build a new signature to get
798-
// the right sugared types, since we don't want to expose the
799-
// name of the generic parameter of BuiltinTupleDecl itself.
800-
if (extraReqs.empty() && !ext->getTrailingWhereClause() &&
801-
!isa<BuiltinTupleDecl>(extendedNominal) &&
802-
false/*!ctx.LangOpts.hasFeature(Feature::NoncopyableGenerics)*/) {
803-
// FIXME: Recover this optimization even with NoncopyableGenerics on.
804-
return parentSig;
805-
}
806-
807795
} else {
808796
llvm_unreachable("Unknown generic declaration kind");
809797
}

0 commit comments

Comments
 (0)