mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move resolving param type to CSApply
This commit is contained in:
@@ -1723,15 +1723,6 @@ namespace {
|
||||
}
|
||||
|
||||
Type visitTypeValueExpr(TypeValueExpr *E) {
|
||||
auto declRefRepr = cast<DeclRefTypeRepr>(E->getRepr());
|
||||
auto resolvedTy = resolveTypeReferenceInExpression(declRefRepr,
|
||||
TypeResolverContext::InExpression,
|
||||
CS.getConstraintLocator(E));
|
||||
|
||||
if (!resolvedTy || resolvedTy->hasError())
|
||||
return Type();
|
||||
|
||||
E->setParamType(resolvedTy);
|
||||
return E->getParamDecl()->getValueType();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user