Handle errors in form binding without crashing. (#6936)

Closes #6920
This commit is contained in:
Geoff Romer
2026-03-20 18:25:00 +00:00
committed by GitHub
parent e06eb8f532
commit 000b4f3fa5
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -320,6 +320,7 @@ static auto ConversionKindFor(Context& context, SemIR::Inst pattern,
context.TODO(entry.pattern_id, "Support symbolic form bindings");
[[fallthrough]];
case SemIR::ValueForm::Kind:
case SemIR::ErrorInst::Kind:
return ConversionTarget::Value;
default:
CARBON_FATAL("Unexpected form {0}", form_inst);