Skip to content

Commit cf0ac49

Browse files
committed
[Constraint solver] No need to associate bound type variables everywhere.
When we are associating type variables with components in a “split” step, there is no need to record already-bound type variables with every component. (cherry picked from commit 0b61f86)
1 parent aaad6c7 commit cf0ac49

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/CSStep.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,6 @@ void SplitterStep::computeFollowupSteps(
164164
componentSteps[known->second]->record(typeVar);
165165
continue;
166166
}
167-
168-
// Otherwise, associate it with all of the component steps,
169-
// expect for components with orphaned constraints, they are
170-
// not supposed to have any type variables.
171-
for (unsigned i = 0; i != firstOrphanedComponent; ++i)
172-
componentSteps[i]->record(typeVar);
173167
}
174168

175169
// Transfer all of the constraints from the work list to

0 commit comments

Comments
 (0)