[Diagnostics] NFC: ConstraintFix::{print, dump} no longer need SourceManager passed-in

Since `ConstraintFix` references `ConstraintSystem` directly now,
we can get `SourceManager` from `ASTContext` associated with that
`ConstraintSystem` instead of passing it in every time.
This commit is contained in:
Pavel Yaskevich
2018-08-22 00:15:24 -07:00
parent 3eeab38606
commit fa45b3b675
5 changed files with 10 additions and 10 deletions

View File

@@ -4988,7 +4988,7 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix) {
auto &log = ctx.TypeCheckerDebug->getStream();
log.indent(solverState ? solverState->depth * 2 + 2 : 0)
<< "(attempting fix ";
fix->print(log, &ctx.SourceMgr);
fix->print(log);
log << ")\n";
}