Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions llvm/include/llvm/ADT/RadixTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <limits>
#include <list>
#include <utility>
#include <vector>

namespace llvm {

Expand Down
10 changes: 5 additions & 5 deletions llvm/lib/Support/SpecialCaseList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ void SpecialCaseList::GlobMatcher::match(
SuffixPrefixToGlob.find_prefixes(reverse(Query))) {
for (const auto &[_, V] : PToGlob.find_prefixes(Query)) {
for (const auto *G : V) {
// Each value of the map is a vector of globs sorted as from best to
// worst.
// Each value of the map is a vector of globs ordered from the best to
// the worst.
if (G->Pattern.match(Query)) {
Cb(G->Name, G->LineNo);
// As soon as we find a match in the vector we can break for the vector,
// vector, but we still need to continue for other values in the
// map, as they may contain a better match.
// As soon as we find a match in the vector we can break for the
// vector, still we can't return, and need to continue for others
// values in the map, as they may contain a better match.
break;
}
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.