has_definition_started accessor for entities (#4730)

Note that I left some calls to `is_defined()` where I thought they were
interchangeable.

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
josh11b
2024-12-20 22:29:50 +00:00
committed by GitHub
co-authored by Josh L
parent 9b72b0eb1a
commit 01ca9f05dd
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ static auto MergeFunctionRedecl(Context& context, SemIRLoc new_loc,
CheckIsAllowedRedecl(context, Lex::TokenKind::Fn, prev_function.name_id,
RedeclInfo(new_function, new_loc, new_is_definition),
RedeclInfo(prev_function, prev_function.latest_decl_id(),
prev_function.definition_id.is_valid()),
prev_function.has_definition_started()),
prev_import_ir_id);
if (!prev_function.first_owning_decl_id.is_valid()) {