Skip to content

Commit 9ac3bd6

Browse files
committed
[GSB] Use RequirementSource::isProtocolRequirement() more.
(cherry picked from commit b676e43)
1 parent c1fc845 commit 9ac3bd6

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
@@ -941,7 +941,7 @@ bool FloatingRequirementSource::isRecursive(
941941
llvm::SmallSet<std::pair<CanType, ProtocolDecl *>, 4> visitedAssocReqs;
942942
for (auto storedSource = storage.dyn_cast<const RequirementSource *>();
943943
storedSource; storedSource = storedSource->parent) {
944-
if (storedSource->kind != RequirementSource::ProtocolRequirement)
944+
if (!storedSource->isProtocolRequirement())
945945
continue;
946946

947947
if (!visitedAssocReqs.insert(

0 commit comments

Comments
 (0)