Removed builtin empty tuple type (#3021)

Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com>
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
authored and GitHub committed 2023-07-27 21:17:29 +00:00
1 parent 1006956ed5
commit db5e269097
71 files changed
+350 -259

No files matched your search

@@ -15,9 +15,6 @@ static auto BuildFunctionDeclaration(SemanticsContext& context)
if (context.parse_tree().node_kind(context.node_stack().PeekParseNode()) ==
ParseNodeKind::ReturnType) {
return_type_id = context.node_stack().Pop<ParseNodeKind::ReturnType>();
} else {
// Canonicalize the empty tuple for the implicit return.
context.CanonicalizeType(SemanticsNodeId::BuiltinEmptyTupleType);
}
SemanticsNodeBlockId param_refs_id =
context.node_stack().Pop<ParseNodeKind::ParameterList>();