Add Abstract enumerator to InitRepr::Kind (#6513)

This fixes a bug where `CheckFunctionReturnType` could sometimes fail to
diagnose an abstract return type.
This commit is contained in:
Geoff Romer
2025-12-17 00:00:14 +00:00
committed by GitHub
parent 2e65d28a16
commit ad7ea755b0
9 changed files with 47 additions and 23 deletions
+2
View File
@@ -67,6 +67,8 @@ auto HandleInst(FunctionContext& context, SemIR::InstId inst_id,
"TODO: Add support for InPlaceInit with custom value rep");
}
break;
case SemIR::InitRepr::Abstract:
CARBON_FATAL("Unexpected abstract type");
case SemIR::InitRepr::Incomplete:
CARBON_FATAL("Unexpected incomplete type");
case SemIR::InitRepr::Dependent: