mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:44:41 +01:00
Support constant InstActions (#7671)
Treat `InstConstantKind::InstAction` the same as `InstConstantKind::ConstInstAction`. Drop `ConstInstAction`, since the two now behave the same. Fix eval for specifics in a couple places to handle `InstId::None`.
This commit is contained in:
@@ -46,9 +46,7 @@ static auto FinishInst(Context& context, SemIR::InstId inst_id,
|
||||
// Template-dependent instructions are handled separately by
|
||||
// `AddDependentActionInst`.
|
||||
CARBON_CHECK(
|
||||
inst.kind().constant_kind() !=
|
||||
SemIR::InstConstantKind::ConstantInstAction &&
|
||||
inst.kind().constant_kind() != SemIR::InstConstantKind::InstAction,
|
||||
inst.kind().constant_kind() != SemIR::InstConstantKind::InstAction,
|
||||
"Use AddDependentActionInst to add an action instruction");
|
||||
|
||||
// Keep track of dependent instructions.
|
||||
|
||||
Reference in New Issue
Block a user