mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cs] use anchor instead of locator, etc
This commit is contained in:
@@ -591,9 +591,10 @@ bool MissingOptionalUnwrapFailure::diagnoseAsError() {
|
||||
|
||||
auto *tryExpr = dyn_cast<OptionalTryExpr>(unwrapped);
|
||||
if (!tryExpr) {
|
||||
auto resolvedBaseTy = BaseType ? resolveType(BaseType) : BaseType;
|
||||
auto resolvedBaseTy =
|
||||
resolveType(BaseType)->reconstituteSugar(/*recursive=*/true);
|
||||
auto resolvedUnwrappedTy =
|
||||
UnwrappedType ? resolveType(UnwrappedType) : UnwrappedType;
|
||||
resolveType(UnwrappedType)->reconstituteSugar(/*recursive=*/true);
|
||||
return diagnoseUnwrap(getConstraintSystem(), unwrapped, resolvedBaseTy,
|
||||
resolvedUnwrappedTy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user