Skip to content

Commit a92eab4

Browse files
committed
[Constraint graph] Make sure we print type variables when dumping components.
Helps with debugging the constraint graph. (cherry picked from commit 0b7ef34)
1 parent 024be91 commit a92eab4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,8 @@ void ConstraintGraph::printConnectedComponents(
12111211
}
12121212

12131213
void ConstraintGraph::dumpConnectedComponents() {
1214+
llvm::SaveAndRestore<bool>
1215+
debug(CS.getASTContext().LangOpts.DebugConstraintSolver, true);
12141216
printConnectedComponents(CS.TypeVariables, llvm::dbgs());
12151217
}
12161218

0 commit comments

Comments
 (0)