mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] LifetimeDependentReturnTypeRepr -> LifetimeDependentTypeRepr
This commit is contained in:
@@ -3962,7 +3962,7 @@ NeverNullType TypeResolver::resolveASTFunctionType(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto *lifetimeRepr = dyn_cast_or_null<LifetimeDependentReturnTypeRepr>(
|
if (auto *lifetimeRepr = dyn_cast_or_null<LifetimeDependentTypeRepr>(
|
||||||
repr->getResultTypeRepr())) {
|
repr->getResultTypeRepr())) {
|
||||||
diagnoseInvalid(lifetimeRepr, lifetimeRepr->getLoc(),
|
diagnoseInvalid(lifetimeRepr, lifetimeRepr->getLoc(),
|
||||||
diag::lifetime_dependence_function_type);
|
diag::lifetime_dependence_function_type);
|
||||||
@@ -4518,8 +4518,8 @@ bool TypeResolver::resolveSingleSILResult(
|
|||||||
|
|
||||||
options.setContext(TypeResolverContext::FunctionResult);
|
options.setContext(TypeResolverContext::FunctionResult);
|
||||||
|
|
||||||
// Look through LifetimeDependentReturnTypeRepr.
|
// Look through LifetimeDependentTypeRepr.
|
||||||
// LifetimeDependentReturnTypeRepr will be processed separately when building
|
// LifetimeDependentTypeRepr will be processed separately when building
|
||||||
// SILFunctionType.
|
// SILFunctionType.
|
||||||
if (auto *lifetimeDependentTypeRepr =
|
if (auto *lifetimeDependentTypeRepr =
|
||||||
dyn_cast<LifetimeDependentTypeRepr>(repr)) {
|
dyn_cast<LifetimeDependentTypeRepr>(repr)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user