Skip to content

Commit cb76f8b

Browse files
authored
Merge pull request #15113 from DougGregor/gsb-term-rewrite-compress
[GSB] Implement minimization of the term-rewriting system
2 parents fcecdc7 + 455cb60 commit cb76f8b

File tree

2 files changed

+381
-50
lines changed

2 files changed

+381
-50
lines changed

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ class GenericSignatureBuilder {
447447

448448
/// Add a rewrite rule that makes \c otherPA a part of the given equivalence
449449
/// class.
450-
void addSameTypeRewriteRule(EquivalenceClass *equivClass,
450+
///
451+
/// \returns true if a new rewrite rule was added, and false otherwise.
452+
bool addSameTypeRewriteRule(EquivalenceClass *equivClass,
451453
PotentialArchetype *otherPA);
452454

453455
/// \brief Add a new conformance requirement specifying that the given

0 commit comments

Comments
 (0)