Skip to content

Commit b3f0337

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

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
@@ -1132,6 +1132,8 @@ class AccessPath {
11321132
// Precondition: this != subNode
11331133
PathNode findPrefix(PathNode subNode) const;
11341134

1135+
bool isPrefixOf(PathNode other) { return node->isPrefixOf(other.node); }
1136+
11351137
bool operator==(PathNode other) const { return node == other.node; }
11361138
bool operator!=(PathNode other) const { return node != other.node; }
11371139
};

0 commit comments

Comments
 (0)