[ConstraintSystem] NFC: Fix type variable printing in connected compoents and constraint system state

This commit is contained in:
Pavel Yaskevich
2019-11-18 13:57:47 -08:00
parent 25949c2903
commit 1945ee2639
2 changed files with 5 additions and 2 deletions

View File

@@ -1403,8 +1403,11 @@ void ConstraintGraphNode::dump() const {
void ConstraintGraph::print(ArrayRef<TypeVariableType *> typeVars,
llvm::raw_ostream &out) {
PrintOptions PO;
PO.PrintTypesForDebugging = true;
for (auto typeVar : typeVars) {
(*this)[typeVar].print(out, 2);
(*this)[typeVar].print(out, 2, PO);
out << "\n";
}
}