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:
Farzana Ahmed Siddique
2023-07-27 21:17:29 +00:00
committed by GitHub
co-authored by Farzana Ahmed Siddique Jon Ross-Perkins
parent 1006956ed5
commit db5e269097
71 changed files with 350 additions and 259 deletions
@@ -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>();