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