Sema: Avoid asking for the SecondType of Constraints that don't have them.

Assertions tripped while trying to reproduce SR-5513.
This commit is contained in:
Joe Groff
2017-07-20 15:17:15 -07:00
parent 409473781d
commit 6e9f4dcd62
2 changed files with 5 additions and 1 deletions

View File

@@ -641,7 +641,6 @@ static bool shouldContractEdge(ConstraintKind kind) {
case ConstraintKind::BindParam:
case ConstraintKind::BindToPointerType:
case ConstraintKind::Equal:
case ConstraintKind::BindOverload:
// We currently only allow subtype contractions for the purpose of
// parameter binding constraints.