AST: Introduce special Builtin.TheTupleType singleton

This commit is contained in:
Slava Pestov
2022-08-18 22:27:11 -04:00
parent 7b9d4e645c
commit c1b8690401
33 changed files with 307 additions and 10 deletions

View File

@@ -1788,6 +1788,9 @@ static bool shouldSerializeMember(Decl *D) {
return false;
llvm_unreachable("should never need to reserialize a member placeholder");
case DeclKind::BuiltinTuple:
llvm_unreachable("BuiltinTupleDecl should not show up here");
case DeclKind::IfConfig:
case DeclKind::PoundDiagnostic:
return false;
@@ -4273,6 +4276,10 @@ public:
void visitMissingMemberDecl(const MissingMemberDecl *) {
llvm_unreachable("member placeholders shouldn't be serialized");
}
void visitBuiltinTupleDecl(const BuiltinTupleDecl *) {
llvm_unreachable("BuiltinTupleDecl are not serialized");
}
};
/// When allowing modules with errors there may be cases where there's little