mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user