Skip to content

Commit 45dc751

Browse files
authored
Merge pull request #28336 from xedin/restore-cs-debug-output
[ConstraintSystem] NFC: Fix type variable printing in connected compo…
2 parents 66a1a02 + 1945ee2 commit 45dc751

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,8 +1403,11 @@ void ConstraintGraphNode::dump() const {
14031403

14041404
void ConstraintGraph::print(ArrayRef<TypeVariableType *> typeVars,
14051405
llvm::raw_ostream &out) {
1406+
PrintOptions PO;
1407+
PO.PrintTypesForDebugging = true;
1408+
14061409
for (auto typeVar : typeVars) {
1407-
(*this)[typeVar].print(out, 2);
1410+
(*this)[typeVar].print(out, 2, PO);
14081411
out << "\n";
14091412
}
14101413
}

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3697,7 +3697,7 @@ void ConstraintSystem::print(raw_ostream &out) const {
36973697
if (rep == tv) {
36983698
if (auto fixed = getFixedType(tv)) {
36993699
out << " as ";
3700-
fixed->print(out);
3700+
Type(fixed).print(out, PO);
37013701
} else {
37023702
getPotentialBindings(tv).dump(out, 1);
37033703
}

0 commit comments

Comments
 (0)