Skip to content

Commit a2f9a69

Browse files
committed
[CS] Remove outdated assertion
We used to apply builder transforms to regular functions without using a constraint system, which is what the assertion is primarily geared towards. However we now use a constraint system for such cases, with the lack of a constraint system only being used to check if we can even apply the transform in the first place.
1 parent e06ccad commit a2f9a69

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/BuilderTransform.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ class BuilderClosureVisitor
208208
DeclContext *dc, Type builderType,
209209
Type bodyResultType)
210210
: cs(cs), dc(dc), ctx(ctx), builderType(builderType) {
211-
assert((cs || !builderType->hasTypeVariable()) &&
212-
"cannot handle builder type with type variables without "
213-
"constraint system");
214211
builder = builderType->getAnyNominal();
215212
applied.builderType = builderType;
216213
applied.bodyResultType = bodyResultType;

0 commit comments

Comments
 (0)