mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user