Skip to content

Commit ca62f2c

Browse files
committed
[MemAccessUtils] Added PathNode::isPrefixOf.
It's just a passthrough to the same method on IndexTrieNode.
1 parent acaa7db commit ca62f2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/SIL/MemAccessUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,8 @@ class AccessPath {
11271127
// Precondition: this != subNode
11281128
PathNode findPrefix(PathNode subNode) const;
11291129

1130+
bool isPrefixOf(PathNode other) { return node->isPrefixOf(other.node); }
1131+
11301132
bool operator==(PathNode other) const { return node == other.node; }
11311133
bool operator!=(PathNode other) const { return node != other.node; }
11321134
};

0 commit comments

Comments
 (0)