mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Adjust a few Invalid comparisons to use is_valid (#3583)
Deliberately not touching the case that came up from #3575
This commit is contained in:
@@ -66,7 +66,7 @@ auto DeclNameStack::LookupOrAddName(NameContext name_context,
|
||||
return name_context.resolved_inst_id;
|
||||
|
||||
case NameContext::State::Unresolved:
|
||||
if (name_context.target_scope_id == SemIR::NameScopeId::Invalid) {
|
||||
if (!name_context.target_scope_id.is_valid()) {
|
||||
context_->AddNameToLookup(name_context.parse_node,
|
||||
name_context.unresolved_name_id, target_id);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user