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