mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 22:02:51 +01:00
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:
co-authored by
Farzana Ahmed Siddique
Jon Ross-Perkins
parent
1006956ed5
commit
db5e269097
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user