mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Remove InstId::Builtin members (#4632)
- `InstId::Builtin<Inst>` -> `<Inst>::SingletonInstId` - `InstId::PackageNamespace` -> `Namespace::PackageInstId`
This commit is contained in:
@@ -122,7 +122,7 @@ auto ScopeStack::LookupInLexicalScopes(SemIR::NameId name_id)
|
||||
|
||||
// If we have no lexical results, check all non-lexical scopes.
|
||||
if (lexical_results.empty()) {
|
||||
return {LexicalLookupHasLoadError() ? SemIR::InstId::BuiltinErrorInst
|
||||
return {LexicalLookupHasLoadError() ? SemIR::ErrorInst::SingletonInstId
|
||||
: SemIR::InstId::Invalid,
|
||||
non_lexical_scope_stack_};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user