Skip to content

Commit 27db9f9

Browse files
authored
Merge pull request #28414 from xedin/cs-graph-printing
[ConstraintGraph] NFC: Adjustency list and equivalence class printing…
2 parents eeeda78 + dacdd13 commit 27db9f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ void ConstraintGraphNode::print(llvm::raw_ostream &out, unsigned indent,
13501350
});
13511351
for (auto adj : sortedAdjacencies) {
13521352
out << ' ';
1353-
adj->print(out);
1353+
adj->print(out, PO);
13541354

13551355
const auto info = AdjacencyInfo.lookup(adj);
13561356
auto degree = info.NumConstraints;
@@ -1389,7 +1389,7 @@ void ConstraintGraphNode::print(llvm::raw_ostream &out, unsigned indent,
13891389
out << "Equivalence class:";
13901390
for (unsigned i = 1, n = EquivalenceClass.size(); i != n; ++i) {
13911391
out << ' ';
1392-
EquivalenceClass[i]->print(out);
1392+
EquivalenceClass[i]->print(out, PO);
13931393
}
13941394
out << "\n";
13951395
}

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3540,7 +3540,7 @@ void Solution::dump(raw_ostream &out) const {
35403540
out.indent(2);
35413541
Type(typeVar).print(out, PO);
35423542
out << " as ";
3543-
binding.second.print(out);
3543+
binding.second.print(out, PO);
35443544
if (auto *locator = typeVar->getImpl().getLocator()) {
35453545
out << " @ ";
35463546
locator->dump(sm, out);

0 commit comments

Comments
 (0)