[NFC] Reduce usage of TypedPattern::getTypeLoc

This commit is contained in:
Robert Widmann
2020-06-10 14:53:25 -07:00
parent 2371e5c260
commit e1015761fb
5 changed files with 44 additions and 43 deletions

View File

@@ -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;
}