mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix the getAddressAccess API.
The API was accidentally undefined, presumably because I checked in the wrong code or there was a bad merge. The API will be used by upcoming commits. Meanwhile, getAccessedAddress was not stripping access markers, which means some analysis may have been too conservative. This fix could expose issues by making existing analyses more effective.
This commit is contained in:
@@ -78,8 +78,10 @@ SingleValueInstruction *isAccessProjection(SILValue v);
|
||||
/// findAccessedStorage() on either \p v or the returned address.
|
||||
SILValue getAddressAccess(SILValue v);
|
||||
|
||||
/// Convenience for stripAccessMarkers(getAddressAccess(V)).
|
||||
SILValue getAccessedAddress(SILValue v);
|
||||
/// Convenience for stripAccessMarkers(getAddressAccess(v)).
|
||||
inline SILValue getAccessedAddress(SILValue v) {
|
||||
return stripAccessMarkers(getAddressAccess(v));
|
||||
}
|
||||
|
||||
/// Return true if \p accessedAddress points to a let-variable.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user