Skip to content

Commit fabb5ab

Browse files
authored
Merge pull request swiftlang#16673 from huonw/GSB-opts
[GSB] Use a larger set for checking for visited requirements in 'isRecursive'.
2 parents 8d8450a + ff77966 commit fabb5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ FloatingRequirementSource FloatingRequirementSource::asInferred(
17751775
bool FloatingRequirementSource::isRecursive(
17761776
Type rootType,
17771777
GenericSignatureBuilder &builder) const {
1778-
llvm::SmallSet<std::pair<CanType, ProtocolDecl *>, 4> visitedAssocReqs;
1778+
llvm::SmallSet<std::pair<CanType, ProtocolDecl *>, 32> visitedAssocReqs;
17791779
for (auto storedSource = storage.dyn_cast<const RequirementSource *>();
17801780
storedSource; storedSource = storedSource->parent) {
17811781
// FIXME: isRecursive() is completely misnamed

0 commit comments

Comments
 (0)