Skip to content

Commit

Permalink
[Runtime] Clean up the assembly around Tuple builtin conformances
Browse files Browse the repository at this point in the history
forgot + 1
  • Loading branch information
Azoy committed Oct 22, 2020
1 parent 7468375 commit 7a6ea99
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 269 deletions.
12 changes: 8 additions & 4 deletions include/swift/AST/ProtocolConformance.h
Expand Up @@ -1085,23 +1085,26 @@ class BuiltinProtocolConformance final : public RootProtocolConformance,
}

bool hasTypeWitness(AssociatedTypeDecl *assocType) const {
llvm_unreachable("builtin-conformances never have associated types");
llvm_unreachable("builtin-conformances currently don't have associated \
types");
}

/// Retrieve the type witness and type decl (if one exists)
/// for the given associated type.
TypeWitnessAndDecl
getTypeWitnessAndDecl(AssociatedTypeDecl *assocType,
SubstOptions options=None) const {
llvm_unreachable("builtin-conformances never have associated types");
llvm_unreachable("builtin-conformances currently don't have associated \
types");
}

/// Given that the requirement signature of the protocol directly states
/// that the given dependent type must conform to the given protocol,
/// return its associated conformance.
ProtocolConformanceRef
getAssociatedConformance(Type assocType, ProtocolDecl *protocol) const {
llvm_unreachable("builtin-conformances never have associated types");
llvm_unreachable("builtin-conformances currently don't have associated \
types");
}

/// Retrieve the witness corresponding to the given value requirement.
Expand All @@ -1112,7 +1115,8 @@ class BuiltinProtocolConformance final : public RootProtocolConformance,
/// Determine whether the witness for the given requirement
/// is either the default definition or was otherwise deduced.
bool usesDefaultDefinition(AssociatedTypeDecl *requirement) const {
llvm_unreachable("builtin-conformances never have associated types");
llvm_unreachable("builtin-conformances currently don't have associated \
types");
}

static bool classof(const ProtocolConformance *conformance) {
Expand Down

0 comments on commit 7a6ea99

Please sign in to comment.