Skip to content

Commit 7683d07

Browse files
authored
[NFC] update comments from an earlier version of SuffixTree (#89800)
LeafChildren is used in an earlier version of the SuffixTree implementation to keep track of each nodes' leaf nodes. In the new/current version, this variable is no longer used, but a comment is left behind. This patch updates the comment.
1 parent d6c4ebb commit 7683d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Support/SuffixTree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ void SuffixTree::RepeatedSubstringIterator::advance() {
242242
unsigned Length = Curr->getConcatLen();
243243

244244
// Iterate over each child, saving internal nodes for visiting, and
245-
// leaf nodes in LeafChildren. Internal nodes represent individual
246-
// strings, which may repeat.
245+
// leaf nodes' SuffixIdx in RepeatedSubstringStarts. Internal nodes
246+
// represent individual strings, which may repeat.
247247
for (auto &ChildPair : Curr->Children) {
248248
// Save all of this node's children for processing.
249249
if (auto *InternalChild =

0 commit comments

Comments
 (0)