File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -276,26 +276,8 @@ void ConstraintGraphNode::addToEquivalenceClass(
276276}
277277
278278void ConstraintGraphNode::truncateEquivalenceClass (unsigned prevSize) {
279- llvm::SmallSetVector<TypeVariableType *, 4 > disconnectedVars;
280- for (auto disconnected = EquivalenceClass.begin () + prevSize;
281- disconnected != EquivalenceClass.end ();
282- ++disconnected) {
283- disconnectedVars.insert (*disconnected);
284- }
285-
286279 EquivalenceClass.erase (EquivalenceClass.begin () + prevSize,
287280 EquivalenceClass.end ());
288-
289- // We need to re-introduce each constraint associated with
290- // "disconnected" member itself and to this representative.
291- {
292- // Re-infer bindings for the current representative.
293- resetBindingSet ();
294-
295- // Re-infer bindings all of the newly made representatives.
296- for (auto *typeVar : disconnectedVars)
297- CG[typeVar].notifyReferencingVars ();
298- }
299281}
300282
301283void ConstraintGraphNode::addReferencedVar (TypeVariableType *typeVar) {
You can’t perform that action at this time.
0 commit comments