From 9da69d81750dda9cf33c844e1da918c852b5da0c Mon Sep 17 00:00:00 2001 From: Xuan Zhang Date: Tue, 23 Apr 2024 10:37:24 -0700 Subject: [PATCH] updates comments from an earlier version of SuffixTree --- llvm/lib/Support/SuffixTree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 =