mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove InstId::Builtin members (#4632)
- `InstId::Builtin<Inst>` -> `<Inst>::SingletonInstId` - `InstId::PackageNamespace` -> `Namespace::PackageInstId`
This commit is contained in:
@@ -233,13 +233,13 @@ auto HandleParseNode(Context& context, Parse::PrefixOperatorAmpId node_id)
|
||||
CARBON_DIAGNOSTIC(AddrOfEphemeralRef, Error,
|
||||
"cannot take the address of a temporary object");
|
||||
context.emitter().Emit(TokenOnly(node_id), AddrOfEphemeralRef);
|
||||
value_id = SemIR::InstId::BuiltinErrorInst;
|
||||
value_id = SemIR::ErrorInst::SingletonInstId;
|
||||
break;
|
||||
default:
|
||||
CARBON_DIAGNOSTIC(AddrOfNonRef, Error,
|
||||
"cannot take the address of non-reference expression");
|
||||
context.emitter().Emit(TokenOnly(node_id), AddrOfNonRef);
|
||||
value_id = SemIR::InstId::BuiltinErrorInst;
|
||||
value_id = SemIR::ErrorInst::SingletonInstId;
|
||||
break;
|
||||
}
|
||||
context.AddInstAndPush<SemIR::AddrOf>(
|
||||
|
||||
Reference in New Issue
Block a user