Skip to content

Commit c84bd00

Browse files
committed
[ConstraintSystem] Move getResolvedOverloads() from CSStep to ConstraintSystem.
1 parent 2edba9d commit c84bd00

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5300,6 +5300,12 @@ class ConstraintSystem {
53005300
SmallVectorImpl<unsigned> &Ordering,
53015301
SmallVectorImpl<unsigned> &PartitionBeginning);
53025302

5303+
/// The overload sets that have already been resolved along the current path.
5304+
const llvm::MapVector<ConstraintLocator *, SelectedOverload> &
5305+
getResolvedOverloads() const {
5306+
return ResolvedOverloads;
5307+
}
5308+
53035309
/// If we aren't certain that we've emitted a diagnostic, emit a fallback
53045310
/// diagnostic.
53055311
void maybeProduceFallbackDiagnostic(SolutionApplicationTarget target) const;

lib/Sema/CSStep.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@ class SolverStep {
213213
CS.CG.addConstraint(constraint);
214214
}
215215

216-
const llvm::MapVector<ConstraintLocator *, SelectedOverload> &
217-
getResolvedOverloads() const {
218-
return CS.ResolvedOverloads;
219-
}
220-
221216
void recordDisjunctionChoice(ConstraintLocator *disjunctionLocator,
222217
unsigned index) const {
223218
CS.recordDisjunctionChoice(disjunctionLocator, index);

0 commit comments

Comments
 (0)