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 @@ -4423,6 +4423,13 @@ class ConstraintSystem {
4423
4423
// Add this constraint to the constraint graph.
4424
4424
CG.addConstraint (constraint);
4425
4425
4426
+ if (isDebugMode () && getPhase () == ConstraintSystemPhase::Solving) {
4427
+ auto &log = llvm::errs ();
4428
+ log.indent (solverState->getCurrentIndent () + 2 ) << " (added constraint: " ;
4429
+ constraint->print (log, &getASTContext ().SourceMgr );
4430
+ log << " )\n " ;
4431
+ }
4432
+
4426
4433
// Record this as a newly-generated constraint.
4427
4434
if (solverState)
4428
4435
solverState->addGeneratedConstraint (constraint);
@@ -4433,6 +4440,14 @@ class ConstraintSystem {
4433
4440
CG.removeConstraint (constraint);
4434
4441
InactiveConstraints.erase (constraint);
4435
4442
4443
+ if (isDebugMode () && getPhase () == ConstraintSystemPhase::Solving) {
4444
+ auto &log = llvm::errs ();
4445
+ log.indent (solverState->getCurrentIndent () + 2 )
4446
+ << " (removed constraint: " ;
4447
+ constraint->print (log, &getASTContext ().SourceMgr );
4448
+ log << " )\n " ;
4449
+ }
4450
+
4436
4451
if (solverState)
4437
4452
solverState->retireConstraint (constraint);
4438
4453
}
You can’t perform that action at this time.
0 commit comments