Sema: Fix crash in IgnoreAssignmentDestinationType::diagnoseForAmbiguity()

This commit is contained in:
Slava Pestov
2025-09-08 09:50:38 -04:00
parent 45ec809330
commit 13b4b03aca
3 changed files with 7 additions and 4 deletions

View File

@@ -2037,7 +2037,7 @@ DeclName OverloadChoice::getName() const {
case OverloadChoiceKind::MaterializePack:
case OverloadChoiceKind::TupleIndex:
case OverloadChoiceKind::ExtractFunctionIsolation:
llvm_unreachable("no name!");
return DeclName();
}
llvm_unreachable("Unhandled OverloadChoiceKind in switch.");