mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a lifetime dependence diagnostic
`LifetimeDescriptor::getName()` can crash if the descriptor had a `self`. Replace with `LifetimeDescriptor::getString()`
This commit is contained in:
@@ -880,7 +880,7 @@ protected:
|
||||
if (!targetDeclAndIndex->first->isInOut()) {
|
||||
diagnose(targetDeclAndIndex->first,
|
||||
diag::lifetime_parameter_requires_inout,
|
||||
targetDescriptor->getName());
|
||||
targetDescriptor->getString());
|
||||
}
|
||||
targetIndex = targetDeclAndIndex->second;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user