Skip to content

Commit 992f035

Browse files
committed
[CS] Fix an if statement
We should be printing retired constraints if we have any.
1 parent f9c0d25 commit 992f035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3122,7 +3122,7 @@ void ConstraintSystem::print(raw_ostream &out) const {
31223122
out << "\n";
31233123
}
31243124

3125-
if (solverState && !solverState->hasRetiredConstraints()) {
3125+
if (solverState && solverState->hasRetiredConstraints()) {
31263126
out << "\nRetired Constraints:\n";
31273127
solverState->forEachRetired([&](Constraint &constraint) {
31283128
out.indent(2);

0 commit comments

Comments
 (0)