Skip to content

Commit d8ebc55

Browse files
committed
[ConstraintSystem] Add possibility to mark conjunction element producers as exhausted
1 parent ff7de78 commit d8ebc55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5886,6 +5886,10 @@ class ConjunctionElementProducer : public BindingProducer<ConjunctionElement> {
58865886
bool needsToComputeNext() const override { return false; }
58875887

58885888
bool isExhausted() const override { return Index >= Elements.size(); }
5889+
5890+
void markExhausted() {
5891+
Index = Elements.size();
5892+
}
58895893
};
58905894

58915895
/// Determine whether given type is a known one

0 commit comments

Comments
 (0)