Remove InstId::Builtin members (#4632)

- `InstId::Builtin<Inst>` -> `<Inst>::SingletonInstId`
- `InstId::PackageNamespace` -> `Namespace::PackageInstId`
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-12-05 18:13:46 +00:00
1 parent d79d9e0884
commit efab39cbd9
38 files changed
+131 -150

No files matched your search

+1 -1
View File
@@ -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_};
}