File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4444,6 +4444,13 @@ class ConstraintSystem {
4444
4444
// Add this constraint to the constraint graph.
4445
4445
CG.addConstraint (constraint);
4446
4446
4447
+ if (isDebugMode () && getPhase () == ConstraintSystemPhase::Solving) {
4448
+ auto &log = llvm::errs ();
4449
+ log.indent (solverState->getCurrentIndent () + 2 ) << " (added constraint: " ;
4450
+ constraint->print (log, &getASTContext ().SourceMgr );
4451
+ log << " )\n " ;
4452
+ }
4453
+
4447
4454
// Record this as a newly-generated constraint.
4448
4455
if (solverState)
4449
4456
solverState->addGeneratedConstraint (constraint);
@@ -4454,6 +4461,14 @@ class ConstraintSystem {
4454
4461
CG.removeConstraint (constraint);
4455
4462
InactiveConstraints.erase (constraint);
4456
4463
4464
+ if (isDebugMode () && getPhase () == ConstraintSystemPhase::Solving) {
4465
+ auto &log = llvm::errs ();
4466
+ log.indent (solverState->getCurrentIndent () + 2 )
4467
+ << " (removed constraint: " ;
4468
+ constraint->print (log, &getASTContext ().SourceMgr );
4469
+ log << " )\n " ;
4470
+ }
4471
+
4457
4472
if (solverState)
4458
4473
solverState->retireConstraint (constraint);
4459
4474
}
You can’t perform that action at this time.
0 commit comments