Skip to content

Commit 7f1f092

Browse files
committed
[CS] Remove a case from getStructuralTypeContext
This was only needed for to handle tuple construction, but is no longer needed now that we retrieve the context info from the locator.
1 parent b3356b0 commit 7f1f092

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/CSFix.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,7 @@ getStructuralTypeContext(const Solution &solution, ConstraintLocator *locator) {
428428
return std::make_tuple(CTP,
429429
solution.getType(assignExpr->getSrc()),
430430
solution.getType(assignExpr->getDest())->getRValueType());
431-
} else if (auto *call = getAsExpr<CallExpr>(locator->getAnchor())) {
432-
assert(isa<TypeExpr>(call->getFn()));
433-
return std::make_tuple(
434-
CTP_Initialization,
435-
solution.getType(call->getFn())->getMetatypeInstanceType(),
436-
solution.getType(call->getArg()));
437431
}
438-
439432
return None;
440433
}
441434

0 commit comments

Comments
 (0)