Clean up some misc toolchain braced inits. (#4013)

Following up on #4012 and #4009, clean scattered cases which could be
making better use of designated initializers.
This commit is contained in:
Jon Ross-Perkins
2024-05-31 23:23:57 +00:00
committed by GitHub
parent 3c01ee69ed
commit 517a416852
16 changed files with 85 additions and 56 deletions
+3 -1
View File
@@ -371,7 +371,9 @@ auto HandleFunctionDefinitionSuspend(Context& context,
// Process the declaration portion of the function.
auto [function_id, decl_id] =
BuildFunctionDecl(context, node_id, /*is_definition=*/true);
return {function_id, decl_id, context.decl_name_stack().Suspend()};
return {.function_id = function_id,
.decl_id = decl_id,
.saved_name_state = context.decl_name_stack().Suspend()};
}
auto HandleFunctionDefinitionResume(Context& context,