mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 06:00:27 +00: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:
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>();
|
||||
|
||||
Reference in new issue
Block a user