Merge pull request #34036 from xedin/replace-error-types-with-holes

[CSGen] Avoid failing on invalid declarations
This commit is contained in:
Pavel Yaskevich
2020-09-23 11:58:32 -07:00
committed by GitHub
9 changed files with 66 additions and 26 deletions

View File

@@ -7014,7 +7014,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
// type but a hole.
auto shouldRecordFixForHole = [&](HoleType *baseType) {
auto *originator =
baseType->getOriginatorType().dyn_cast<TypeVariableType *>();
baseType->getOriginator().dyn_cast<TypeVariableType *>();
if (!originator)
return false;