[region-isolation] Emit an error when we assign a non-disconnected value into a sending result.

rdar://127318392
This commit is contained in:
Michael Gottesman
2024-07-17 11:00:51 -07:00
parent ae797d43e9
commit bcbf5c515e
7 changed files with 450 additions and 23 deletions

View File

@@ -639,7 +639,7 @@ SILValue VariableNameInferrer::findDebugInfoProvidingValueHelper(
}
}
static StringRef getNameFromDecl(Decl *d) {
StringRef VariableNameInferrer::getNameFromDecl(Decl *d) {
if (d) {
if (auto accessor = dyn_cast<AccessorDecl>(d)) {
return accessor->getStorage()->getBaseName().userFacingName();