Skip to content

Commit 6be6401

Browse files
committed
[Constraint solver] Fix incorrect bailout in connected-components.
Address a silly mistake that meant we were miscomputing connected components.
1 parent 62502ef commit 6be6401

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,6 @@ unsigned ConstraintGraph::computeConnectedComponents(
593593
SmallVector<unsigned, 4> componentRenumbering(numComponents, 0);
594594
numComponents = 0;
595595
for (unsigned i = 0, n = componentHasUnboundTypeVar.size(); i != n; ++i) {
596-
// If we didn't look at this type variable, there's nothing to do.
597-
if (components[i] == numTypeVariables)
598-
continue;
599-
600596
// Skip components that have no unbound type variables.
601597
if (!componentHasUnboundTypeVar[i])
602598
continue;

0 commit comments

Comments
 (0)