Skip to content

Commit ebc03a1

Browse files
committed
[CSBindings] NFC: Remove dead condition leftover from Swift version 3 support
1 parent c03d762 commit ebc03a1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -931,15 +931,7 @@ bool ConstraintSystem::PotentialBindings::infer(
931931

932932
case ConstraintKind::ConformsTo:
933933
case ConstraintKind::SelfObjectOfProtocol:
934-
// Swift 3 allowed the use of default types for normal conformances
935-
// to expressible-by-literal protocols.
936-
if (cs.getASTContext().LangOpts.EffectiveLanguageVersion[0] >= 4)
937-
return false;
938-
939-
if (!constraint->getSecondType()->is<ProtocolType>())
940-
return false;
941-
942-
LLVM_FALLTHROUGH;
934+
return false;
943935

944936
case ConstraintKind::LiteralConformsTo: {
945937
// Record constraint where protocol requirement originated

0 commit comments

Comments
 (0)