mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[region-isolation] Emit an error when we assign a non-disconnected value into a sending result.
rdar://127318392
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user