Skip to content

Commit 21b5326

Browse files
committed
AST: Add an assertion
1 parent 559eaf0 commit 21b5326

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/GenericSignature.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ getBestRequirementSource(GenericSignatureBuilder &builder,
814814
}
815815
}
816816

817+
assert(bestSource && "All sources were self-recursive?");
817818
return bestSource;
818819
}
819820

0 commit comments

Comments
 (0)