Skip to content

Commit 1d7eae7

Browse files
committed
RequirementMachine: lexshort => shortlex
1 parent 2d63695 commit 1d7eae7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/AST/RequirementMachine/GenericSignatureQueries.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ RequirementMachine::getConformanceAccessPath(Type type,
489489
}
490490
}
491491

492-
// We enumerate conformance access paths in lexshort order until we find the
492+
// We enumerate conformance access paths in shortlex order until we find the
493493
// path whose corresponding type canonicalizes to the one we are looking for.
494494
while (true) {
495495
auto found = ConformanceAccessPaths.find(
@@ -532,7 +532,7 @@ RequirementMachine::getConformanceAccessPath(Type type,
532532

533533
// If we've already seen a path for this conformance, skip it and
534534
// don't add it to the buffer. Note that because we iterate over
535-
// conformance access paths in lexshort order, the existing
535+
// conformance access paths in shortlex order, the existing
536536
// conformance access path is shorter than the one we found just now.
537537
if (ConformanceAccessPaths.count(
538538
std::make_pair(nextCanType, nextProto)))

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ ArrayRef<const ProtocolDecl *> MutableTerm::getRootProtocols() const {
784784
llvm_unreachable("Bad root symbol");
785785
}
786786

787-
/// Linear order on terms.
787+
/// Shortlex order on terms.
788788
///
789789
/// First we compare length, then perform a lexicographic comparison
790790
/// on symbols if the two terms have the same length.

0 commit comments

Comments
 (0)