mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 12:28:32 +00:00
Emit function definitions in check, for all specifics seen. (#5090)
Emitting definitions in check. This resolves the crash in lowering which necessitated definitions be emitted. Some of the test changes need further review.
This commit is contained in:
1 parent
6ee1006a61
commit
077cf56a8a
17 files changed
+100
-66
No files matched your search
@@ -531,7 +531,7 @@ static auto BuildFunctionDecl(Context& context,
|
||||
function_info);
|
||||
|
||||
if (!is_definition && context.sem_ir().is_impl() && !is_extern) {
|
||||
context.definitions_required().push_back(decl_id);
|
||||
context.definitions_required_by_decl().push_back(decl_id);
|
||||
}
|
||||
|
||||
return {function_decl.function_id, decl_id};
|
||||
|
||||
Reference in new issue
Block a user