mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Solver: Keep track of a solution's score as we're computing it.
No functionality change here; just staging for some future optimizations. Swift SVN r11028
This commit is contained in:
@@ -526,6 +526,9 @@ tryUserConversion(ConstraintSystem &cs, Type type, ConstraintKind kind,
|
||||
cs.addConstraint(kind, outputTV, otherType, resultLocator);
|
||||
}
|
||||
|
||||
// We're adding a user-defined conversion.
|
||||
cs.increaseScore(SK_UserConversion);
|
||||
|
||||
return ConstraintSystem::SolutionKind::Solved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user