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:
@@ -46,7 +46,7 @@ auto HandleParseNode(Context& context, Parse::ArrayExprId node_id) -> bool {
|
||||
if (!context.constant_values().Get(bound_inst_id).is_constant()) {
|
||||
CARBON_DIAGNOSTIC(InvalidArrayExpr, Error, "array bound is not a constant");
|
||||
context.emitter().Emit(bound_inst_id, InvalidArrayExpr);
|
||||
context.node_stack().Push(node_id, SemIR::InstId::BuiltinErrorInst);
|
||||
context.node_stack().Push(node_id, SemIR::ErrorInst::SingletonInstId);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user