@@ -485,7 +485,7 @@ class AccessedStorage {
485
485
// / This compares only the AccessedStorage base class bits, ignoring the
486
486
// / subclass bits. It is used for hash lookup equality, so it should not
487
487
// / perform any additional lookups or dereference memory outside itself.
488
- bool hasIdenticalBase (const AccessedStorage &other) const {
488
+ bool hasIdenticalStorage (const AccessedStorage &other) const {
489
489
if (getKind () != other.getKind ())
490
490
return false ;
491
491
@@ -609,7 +609,7 @@ class AccessedStorage {
609
609
template <bool (AccessedStorage::*IsUniqueFn)() const >
610
610
bool isDistinctFrom (const AccessedStorage &other) const {
611
611
if ((this ->*IsUniqueFn)()) {
612
- if ((other.*IsUniqueFn)() && !hasIdenticalBase (other))
612
+ if ((other.*IsUniqueFn)() && !hasIdenticalStorage (other))
613
613
return true ;
614
614
615
615
if (other.isObjectAccess ())
@@ -706,7 +706,7 @@ template <> struct DenseMapInfo<swift::AccessedStorage> {
706
706
}
707
707
708
708
static bool isEqual (swift::AccessedStorage LHS, swift::AccessedStorage RHS) {
709
- return LHS.hasIdenticalBase (RHS);
709
+ return LHS.hasIdenticalStorage (RHS);
710
710
}
711
711
};
712
712
@@ -944,8 +944,9 @@ class AccessPath {
944
944
945
945
bool operator ==(AccessPath other) const {
946
946
return
947
- storage.hasIdenticalBase (other.storage ) && pathNode == other.pathNode &&
948
- offset == other.offset ;
947
+ storage.hasIdenticalStorage (other.storage )
948
+ && pathNode == other.pathNode
949
+ && offset == other.offset ;
949
950
}
950
951
bool operator !=(AccessPath other) const { return !(*this == other); }
951
952
@@ -1220,8 +1221,8 @@ void checkSwitchEnumBlockArg(SILPhiArgument *arg);
1220
1221
// / This is not a member of AccessedStorage because it only makes sense to use
1221
1222
// / in SILGen before access markers are emitted, or when verifying access
1222
1223
// / markers.
1223
- bool isPossibleFormalAccessBase (const AccessedStorage &storage,
1224
- SILFunction *F);
1224
+ bool isPossibleFormalAccessStorage (const AccessedStorage &storage,
1225
+ SILFunction *F);
1225
1226
1226
1227
// / Perform a RAUW operation on begin_access with it's own source operand.
1227
1228
// / Then erase the begin_access and all associated end_access instructions.
0 commit comments