Skip to content

Commit 63544b5

Browse files
authored
Merge pull request swiftlang#15056 from rudkx/bad-comparison
Fix overload set construction to not have an extra element in the dis…
2 parents 8ff5fba + 001bbda commit 63544b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ void ConstraintSystem::addOverloadSet(Type boundType,
14331433
overloads.push_back(bindOverloadConstraint);
14341434
}
14351435

1436-
for (auto choice : choices) {
1436+
for (auto &choice : choices) {
14371437
if (favoredChoice && (favoredChoice == &choice))
14381438
continue;
14391439

0 commit comments

Comments
 (0)