Skip to content

Commit 5f4b2cf

Browse files
committed
Revert "[Generic environment] Weaken an assertion when forming a substitution map."
This reverts commit 485ed7b. The original assertion should now suffice.
1 parent 8e16f60 commit 5f4b2cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/AST/GenericEnvironment.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ getSubstitutionMap(SubstitutionList subs) const {
412412
continue;
413413
}
414414

415-
// FIXME: getAllDependentTypes() includes generic type parameters that
416-
// have been made concrete.
417-
assert(contextTy->hasError() || depTy->is<GenericTypeParamType>());
415+
assert(contextTy->hasError());
418416
}
419417

420418
assert(subs.empty() && "did not use all substitutions?!");

0 commit comments

Comments
 (0)