Skip to content

Commit 77da6bd

Browse files
committed
[Constraint graph] Don't drop unidirectional constraints.
Ye olde "break should have been continue" bug. This undoubtedly has problems elsewhere, but I don't have a specific case until the next commit.
1 parent 9ce20c4 commit 77da6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ namespace {
942942
for (auto lhsTypeRep : lhsTypeReps) {
943943
for (auto rhsTypeRep : rhsTypeReps) {
944944
if (lhsTypeRep == rhsTypeRep)
945-
break;
945+
continue;
946946

947947
insertIfUnique(oneWayDigraph[rhsTypeRep].outAdjacencies,lhsTypeRep);
948948
insertIfUnique(oneWayDigraph[lhsTypeRep].inAdjacencies,rhsTypeRep);

0 commit comments

Comments
 (0)