mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ConstraintSystem] Convert Fixes to a set vector to avoid duplicates
This commit is contained in:
@@ -11516,7 +11516,7 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix, unsigned impact) {
|
||||
return true;
|
||||
|
||||
if (isAugmentingFix(fix)) {
|
||||
Fixes.push_back(fix);
|
||||
Fixes.insert(fix);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -11541,7 +11541,7 @@ bool ConstraintSystem::recordFix(ConstraintFix *fix, unsigned impact) {
|
||||
}
|
||||
|
||||
if (!found)
|
||||
Fixes.push_back(fix);
|
||||
Fixes.insert(fix);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user