mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Reduce usage of TypedPattern::getTypeLoc
This commit is contained in:
@@ -3759,7 +3759,7 @@ checkImplicitPromotionsInCondition(const StmtConditionElement &cond,
|
||||
diag::optional_check_promotion,
|
||||
subExpr->getType())
|
||||
.highlight(subExpr->getSourceRange())
|
||||
.fixItReplace(TP->getTypeLoc().getSourceRange(),
|
||||
.fixItReplace(TP->getTypeRepr()->getSourceRange(),
|
||||
ooType->getString());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user