mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Finish renaming BindName and related insts. (#6281)
Resolves the TODO from #6235
This commit is contained in:
@@ -246,7 +246,7 @@ auto MatchContext::DoEmitPatternMatch(Context& context,
|
||||
value_id = entry.scrutinee_id;
|
||||
}
|
||||
if (bind_name_id.has_value()) {
|
||||
auto bind_name = context.insts().GetAs<SemIR::AnyBindName>(bind_name_id);
|
||||
auto bind_name = context.insts().GetAs<SemIR::AnyBinding>(bind_name_id);
|
||||
CARBON_CHECK(!bind_name.value_id.has_value());
|
||||
bind_name.value_id = value_id;
|
||||
ReplaceInstBeforeConstantUse(context, bind_name_id, bind_name);
|
||||
|
||||
Reference in New Issue
Block a user