diff --git a/llvm/lib/Support/SuffixTree.cpp b/llvm/lib/Support/SuffixTree.cpp index eaa653078e090..c00c7989d1a64 100644 --- a/llvm/lib/Support/SuffixTree.cpp +++ b/llvm/lib/Support/SuffixTree.cpp @@ -242,8 +242,8 @@ void SuffixTree::RepeatedSubstringIterator::advance() { unsigned Length = Curr->getConcatLen(); // Iterate over each child, saving internal nodes for visiting, and - // leaf nodes in LeafChildren. Internal nodes represent individual - // strings, which may repeat. + // leaf nodes' SuffixIdx in RepeatedSubstringStarts. Internal nodes + // represent individual strings, which may repeat. for (auto &ChildPair : Curr->Children) { // Save all of this node's children for processing. if (auto *InternalChild =