@@ -1610,7 +1610,7 @@ class Solution {
16101610 // / A mapping from the constraint locators for references to various
16111611 // / names (e.g., member references, normal name references, possible
16121612 // / constructions) to the argument lists for the call to that locator.
1613- llvm::MapVector <ConstraintLocator *, ArgumentList *> argumentLists;
1613+ llvm::DenseMap <ConstraintLocator *, ArgumentList *> argumentLists;
16141614
16151615 // / The set of implicitly generated `.callAsFunction` root expressions.
16161616 llvm::DenseMap<ConstraintLocator *, UnresolvedDotExpr *>
@@ -2397,7 +2397,7 @@ class ConstraintSystem {
23972397 // / A mapping from the constraint locators for references to various
23982398 // / names (e.g., member references, normal name references, possible
23992399 // / constructions) to the argument lists for the call to that locator.
2400- llvm::MapVector <ConstraintLocator *, ArgumentList *> ArgumentLists;
2400+ llvm::DenseMap <ConstraintLocator *, ArgumentList *> ArgumentLists;
24012401
24022402public:
24032403 // / A map from argument expressions to their applied property wrapper expressions.
@@ -2801,6 +2801,11 @@ class ConstraintSystem {
28012801 // / Associate an argument list with a call at a given locator.
28022802 void associateArgumentList (ConstraintLocator *locator, ArgumentList *args);
28032803
2804+ // / Same as associateArgumentList() except the locator points at the
2805+ // / argument list itself. Records a change in the trail.
2806+ void recordArgumentList (ConstraintLocator *locator,
2807+ ArgumentList *args);
2808+
28042809 // / If the given node is a function expression with a parent ApplyExpr,
28052810 // / returns the apply, otherwise returns the node itself.
28062811 ASTNode includingParentApply (ASTNode node);
@@ -2850,9 +2855,6 @@ class ConstraintSystem {
28502855 // / FIXME: Remove this.
28512856 unsigned numFixes;
28522857
2853- // / The length of \c ArgumentLists.
2854- unsigned numArgumentLists;
2855-
28562858 // / The length of \c ImplicitCallAsFunctionRoots.
28572859 unsigned numImplicitCallAsFunctionRoots;
28582860
0 commit comments